]> git.baikalelectronics.ru Git - kernel.git/commit
NOMMU: Add support for direct mapping through mtdconcat if possible
authorDavid Howells <dhowells@redhat.com>
Thu, 12 Feb 2009 10:40:05 +0000 (10:40 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 24 Mar 2009 09:01:08 +0000 (09:01 +0000)
commitca14b933dca447316d6cee85d5bf76a0719a1ac3
tree734facadf7ecfc120196a257f8e4e34d31d69a49
parentac55fe3767ff6778d9f71194ac0ecebe0fe662ab
NOMMU: Add support for direct mapping through mtdconcat if possible

Add support for direct mapping through mtdconcat, if possible, by attaching the
samebacking_dev_info structure to the master.

It has some restrictions:

 (1) It won't permit direct mapping of concatenated devices that have differing
     BDIs.

 (2) It doesn't support maps that span the 'gap' between devices, although it
     possibly could if the devices spanned across return compatible
     (ie. contiguous) addresses from their get_unmapped_area() ops.

Signed-off-by: Gavin Lambert <gavinl@compacsort.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Bernd Schmidt <bernd.schmidt@analog.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdconcat.c