]> nv-tegra.nvidia Code Review - linux-2.6.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)
commit70688e4dd1647f0ceb502bbd5964fa344c5eb411
treee0bd8c3b4b6050c067a453d800c2e87948d1abaf
parent30afcb4bd2762fa4b87b17ada9500aa46dc10b1b
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