linux/arch/xtensa
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
..
boot xtensa: change to new flag variable 2011-03-17 14:02:57 +01:00
configs tokenring: delete all remaining driver support 2012-05-15 20:23:16 -04:00
include cross-arch: don't corrupt personality flags upon exec() 2012-10-06 03:04:47 +09:00
kernel PCI changes for the 3.7 merge window: 2012-10-01 12:05:36 -07:00
lib
mm readahead: fault retry breaks mmap file read random detection 2012-10-09 16:22:47 +09:00
platforms TTY: use tty_port_link_device 2012-08-13 16:50:19 -07:00
variants xtensa: Change mail addresses of Hannes Weiner and Oskar Schirmer 2012-05-17 22:47:41 +02:00
Kconfig xtensa: remove duplicate CONFIG_HOTPLUG definition 2012-09-06 13:26:16 -07:00
Kconfig.debug
Makefile xtensa: use "test -e" instead of bashism "test -a" 2012-06-20 14:39:35 -07:00