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
..
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:11 +01:00
2012-04-23 14:21:52 +01:00
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:12 +01:00
2011-09-10 23:39:56 +01:00
2011-07-02 10:56:11 +01:00
2012-09-15 21:43:31 +01:00
2011-07-07 15:31:05 +01:00
2012-03-28 18:30:01 +01:00
2012-10-07 21:20:57 +09:00
2012-08-16 16:16:50 +08:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-09-28 21:11:49 +01:00
2012-03-28 18:30:01 +01:00
2012-08-25 09:15:57 +01:00
2012-03-20 21:48:14 +08:00
2012-03-20 21:48:14 +08:00
2012-03-29 16:53:48 -07:00
2012-03-20 21:48:14 +08:00
2012-03-20 21:48:14 +08:00
2012-03-29 16:53:48 -07:00
2012-03-20 21:48:14 +08:00
2012-03-29 16:53:48 -07:00
2012-10-02 09:24:24 +02:00
2008-09-06 11:35:55 +01:00
2012-10-09 16:22:39 +09:00
2012-10-09 16:22:47 +09:00
2011-12-08 10:30:40 +00:00
2012-10-09 16:22:39 +09:00
2011-12-08 10:30:37 +00:00
2011-12-08 10:30:40 +00:00
2012-03-29 16:53:48 -07:00
2012-03-28 18:30:01 +01:00
2012-08-13 00:22:28 +01:00
2012-02-23 20:18:56 -07:00
2012-10-07 21:20:57 +09:00
2012-05-05 05:50:50 +01:00
2012-05-05 05:50:50 +01:00
2012-08-25 09:11:40 +01:00
2011-12-06 11:15:25 +00:00
2012-10-02 19:13:12 -07:00
2012-04-13 14:05:42 +01:00
2011-07-02 10:56:10 +01:00
2011-07-02 10:56:10 +01:00
2011-07-02 10:56:10 +01:00
2012-03-28 18:30:01 +01:00
2011-12-06 14:04:14 +00:00
2011-12-06 14:04:14 +00:00
2011-12-06 14:04:14 +00:00
2011-12-06 14:04:14 +00:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-05-02 11:12:49 +01:00
2012-03-28 18:30:01 +01:00
2012-05-02 11:12:49 +01:00
2011-12-08 10:30:39 +00:00
2012-05-22 09:41:01 -07:00
2011-12-06 14:04:14 +00:00
2011-12-06 14:04:14 +00:00
2009-12-14 14:53:22 +00:00
2012-07-09 17:41:10 +01:00
2012-07-09 17:41:10 +01:00
2011-12-08 10:30:39 +00:00
2012-04-15 22:00:31 +01:00
2011-12-06 14:04:14 +00:00
2011-12-06 14:04:14 +00:00
2011-07-22 23:09:07 +01:00
2011-07-07 15:31:12 +01:00
2011-07-07 15:31:12 +01:00
2011-07-07 15:31:12 +01:00
2011-07-22 23:09:07 +01:00
2012-08-11 09:16:00 +01:00
2012-01-23 10:23:57 +00:00
2012-05-21 15:06:23 +02:00