]> git.baikalelectronics.ru Git - kernel.git/commit
ext4,f2fs: fix readahead of verity data
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 12 Oct 2022 19:34:19 +0000 (20:34 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 13 Oct 2022 01:51:48 +0000 (18:51 -0700)
commit8f305c6b75e11819f109ed74c632ad847caa4342
tree93e0a3d208bdf1f845ecb8933484988b3a4f4b07
parente8e2cf37762d7ccaa54e3843a232082a29894898
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: 5b52bc08d3d7 ("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>
fs/ext4/verity.c
fs/f2fs/verity.c