]> git.baikalelectronics.ru Git - kernel.git/commit
xip: support non-struct page backed memory
authorNick Piggin <npiggin@suse.de>
Mon, 28 Apr 2008 09:13:02 +0000 (02:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:23 +0000 (08:58 -0700)
commit5a4694952a2881fabde237554f8e0c4257641d5d
treee0bd8c3b4b6050c067a453d800c2e87948d1abaf
parentde20342fceb008ee98f94a27fdd42b0228ca5993
xip: support non-struct page backed memory

Convert XIP to support non-struct page backed memory, using VM_MIXEDMAP for
the user mappings.

This requires the get_xip_page API to be changed to an address based one.
Improve the API layering a little bit too, while we're here.

This is required in order to support XIP filesystems on memory that isn't
backed with struct page (but memory with struct page is still supported too).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Cc: Jared Hulbert <jaredeh@gmail.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext2/inode.c
fs/ext2/xip.c
fs/ext2/xip.h
fs/open.c
include/linux/fs.h
mm/fadvise.c
mm/filemap_xip.c
mm/madvise.c