2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00
linux-next/arch/cris/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
..
fault.c readahead: fault retry breaks mmap file read random detection 2012-10-09 16:22:47 +09:00
init.c mm: now that all old mmu_gather code is gone, remove the storage 2011-05-25 08:39:16 -07:00
ioremap.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tlb.c spelling fixes: arch/cris/ 2007-10-20 01:08:50 +02:00