Commit 5e82339f authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Eric Biggers
Browse files

UPSTREAM: 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: 73bb49da ("mm/readahead: make page_cache_ra_unbounded take a readahead_control")
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Reported-by: default avatarJintao Yin <nicememory@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>

Bug: 258554362
(cherry picked from commit 4fa0e3ff)
Change-Id: Ib5160c5c53629be328c370f5d5d464956d6a6312
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 3605981d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment