Files
tegra-linux-noble/include/linux
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
..
2012-09-19 19:08:53 -06:00
2012-09-27 14:28:09 -03:00
2012-10-06 03:04:35 +09:00
2012-09-19 19:08:46 -06:00
2012-09-17 15:00:38 -07:00
2012-09-17 15:00:38 -07:00
2012-09-27 09:29:33 -04:00
2012-09-26 21:10:00 -04:00
2012-10-09 16:22:15 +09:00
2012-09-19 19:50:20 +02:00
2012-10-06 03:04:56 +09:00
2012-10-01 18:39:45 -04:00
2012-09-11 10:15:02 +02:00
2012-09-26 13:52:36 -07:00
2012-09-17 15:00:37 -07:00
2012-10-09 16:22:44 +09:00
2012-10-06 03:05:24 +09:00
2012-09-27 10:47:59 +02:00
2012-10-09 16:22:24 +09:00
2012-10-05 22:23:53 +02:00
2012-09-13 09:08:02 -06:00
2012-10-06 03:05:01 +09:00
2012-10-09 16:22:24 +09:00
2012-10-09 16:22:32 +09:00
2012-09-28 15:05:15 +09:30
2012-10-09 16:22:44 +09:00