linux/arch/m68k/mm
Shaohua Li 45cac65b0f readahead: fault retry breaks mmap file read random detection
.fault now can retry.  The retry can break state machine of .fault.  In
filemap_fault, if page is miss, ra->mmap_miss is increased.  In the second
try, since the page is in page cache now, ra->mmap_miss is decreased.  And
these are done in one fault, so we can't detect random mmap file access.

Add a new flag to indicate .fault is tried once.  In the second try, skip
ra->mmap_miss decreasing.  The filemap_fault state machine is ok with it.

I only tested x86, didn't test other archs, but looks the change for other
archs is obvious, but who knows :)

Signed-off-by: Shaohua Li <shaohua.li@fusionio.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-09 16:22:47 +09:00
..
cache.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k 2012-01-26 12:43:57 -08:00
fault.c readahead: fault retry breaks mmap file read random detection 2012-10-09 16:22:47 +09:00
hwtest.c
init_mm.c m68k: Replace m68k-specific _[se]bss by generic __bss_{start,stop} 2012-06-27 09:59:43 +02:00
init_no.c m68k: Replace m68k-specific _[se]bss by generic __bss_{start,stop} 2012-06-27 09:59:43 +02:00
init.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
kmap.c Disintegrate asm/system.h for M68K 2012-03-28 18:30:02 +01:00
Makefile m68k: compile appropriate mm arch files for ColdFire MMU support 2011-12-30 10:20:39 +10:00
mcfmmu.c m68k: Do not set global share for non-kernel shared pages 2012-02-07 11:25:57 +10:00
memory.c m68k: fix ColdFire clear cache operation 2012-07-17 15:49:34 +10:00
motorola.c Disintegrate asm/system.h for M68K 2012-03-28 18:30:02 +01:00
sun3kmap.c m68k: missing exports 2007-07-20 08:24:49 -07:00
sun3mmu.c Disintegrate asm/system.h for M68K 2012-03-28 18:30:02 +01:00