remarkable-linux/include
Nick Piggin 54cb8821de mm: merge populate and nopage into fault (fixes nonlinear)
Nonlinear mappings are (AFAIKS) simply a virtual memory concept that encodes
the virtual address -> file offset differently from linear mappings.

->populate is a layering violation because the filesystem/pagecache code
should need to know anything about the virtual memory mapping.  The hitch here
is that the ->nopage handler didn't pass down enough information (ie.  pgoff).
 But it is more logical to pass pgoff rather than have the ->nopage function
calculate it itself anyway (because that's a similar layering violation).

Having the populate handler install the pte itself is likewise a nasty thing
to be doing.

This patch introduces a new fault handler that replaces ->nopage and
->populate and (later) ->nopfn.  Most of the old mechanism is still in place
so there is a lot of duplication and nice cleanups that can be removed if
everyone switches over.

The rationale for doing this in the first place is that nonlinear mappings are
subject to the pagefault vs invalidate/truncate race too, and it seemed stupid
to duplicate the synchronisation logic rather than just consolidate the two.

After this patch, MAP_NONBLOCK no longer sets up ptes for pages present in
pagecache.  Seems like a fringe functionality anyway.

NOPAGE_REFAULT is removed.  This should be implemented with ->fault, and no
users have hit mainline yet.

[akpm@linux-foundation.org: cleanup]
[randy.dunlap@oracle.com: doc. fixes for readahead]
[akpm@linux-foundation.org: build fix]
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-19 10:04:41 -07:00
..
acpi
asm-alpha alpha termios.h hadn't been updated 2007-07-17 11:01:07 -07:00
asm-arm fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-arm26 fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-avr32 [AVR32] Fix atomic_add_unless() and atomic_sub_unless() 2007-07-18 20:47:04 +02:00
asm-blackfin fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-cris fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-frv fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-generic saner typechecking in generic unaligned.h 2007-07-17 11:01:07 -07:00
asm-h8300 fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-i386 Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 2007-07-18 10:32:00 -07:00
asm-ia64 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 2007-07-17 11:31:57 -07:00
asm-m32r fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-m68k fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-m68knommu fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-mips zs: move to the serial subsystem 2007-07-18 08:38:22 -07:00
asm-parisc fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-powerpc sys_fallocate() implementation on i386, x86_64 and powerpc 2007-07-17 21:42:44 -04:00
asm-ppc mm: remove ptep_test_and_clear_dirty and ptep_clear_flush_dirty 2007-07-17 10:22:59 -07:00
asm-s390 fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-sh fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-sh64 fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-sparc fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-sparc64 [SPARC]: Mark sparc and sparc64 as not having virt_to_bus 2007-07-18 01:20:22 -07:00
asm-um Add generic exit-time stack-depth checking to CONFIG_DEBUG_STACK_USAGE 2007-07-16 09:05:38 -07:00
asm-v850 fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
asm-x86_64 sys_fallocate() implementation on i386, x86_64 and powerpc 2007-07-17 21:42:44 -04:00
asm-xtensa fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
crypto
keys
linux mm: merge populate and nopage into fault (fixes nonlinear) 2007-07-19 10:04:41 -07:00
math-emu
media V4L/DVB (5835): saa7146/dvb-ttpci: Fix signedness warnings (gcc 4.1.1, kernel 2.6.22) 2007-07-18 14:24:44 -03:00
mtd UBI: kill homegrown endian macros 2007-07-18 16:53:49 +03:00
net [XFRM]: Fix crash introduced by struct dst_entry reordering 2007-07-18 01:55:52 -07:00
pcmcia
rdma
rxrpc
scsi [SCSI] Remove unused method scsi_device_cancel 2007-07-14 16:01:16 -05:00
sound
video tgafb: actually allocate memory for the pseudo_palette 2007-07-17 10:23:12 -07:00
xen xen: Place vcpu_info structure into per-cpu memory 2007-07-18 08:47:45 -07:00
Kbuild