summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-10-12 21:34:19 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-10-13 03:51:48 +0200
commit4fa0e3ff217f775cb58d2d6d51820ec519243fb9 (patch)
tree93e0a3d208bdf1f845ecb8933484988b3a4f4b07 /mm
parentmm/mmap: undo ->mmap() when arch_validate_flags() fails (diff)
downloadlinux-4fa0e3ff217f775cb58d2d6d51820ec519243fb9.tar.xz
linux-4fa0e3ff217f775cb58d2d6d51820ec519243fb9.zip
ext4,f2fs: fix readahead of verity data
The recent change of page_cache_ra_unbounded() arguments was buggy in the two callers, causing us to readahead the wrong pages. Move the definition of ractl down to after the index is set correctly. This affected performance on configurations that use fs-verity. Link: https://lkml.kernel.org/r/20221012193419.1453558-1-willy@infradead.org Fixes: 73bb49da50cd ("mm/readahead: make page_cache_ra_unbounded take a readahead_control") Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reported-by: Jintao Yin <nicememory@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions