diff options
| author | fujunjie <fujunjie1@qq.com> | 2026-04-28 04:59:44 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-05-29 07:05:06 +0300 |
| commit | 9b0fcac3cfe7ffeb3da78bfee765072861c81ce2 (patch) | |
| tree | 42dcec239b4cc7ef332022b6f999fc2ed3d259c0 /include/linux | |
| parent | 0b9c0aeba938aad9964f855df00bf929b83a484d (diff) | |
| download | linux-9b0fcac3cfe7ffeb3da78bfee765072861c81ce2.tar.xz | |
mm/filemap: do not count FAULT_FLAG_TRIED retries as mmap hits
A fault that starts synchronous mmap readahead can return VM_FAULT_RETRY
after dropping mmap_lock. The retry may then map the folio brought in by
that same miss.
Do not let this retry decrement mmap_miss. The retry still maps the folio
from the page cache; it just does not count as a useful mmap readahead
hit.
Link: https://lore.kernel.org/tencent_22E6B8849EC1141FE7773C64467E6F1E2C09@qq.com
Signed-off-by: fujunjie <fujunjie1@qq.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Vishal Moola <vishal.moola@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
