linux/fs/ext4
Matthew Wilcox (Oracle) 23f1fc7ce5 ext4,f2fs: fix readahead of verity data
commit 4fa0e3ff21 upstream.

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: 73bb49da50 ("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>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-10 18:14:29 +01:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
ext4.h
extents_status.c
extents_status.h
extents.c ext4: fix bug in extents parsing when eh_entries == 0 and eh_depth > 0 2022-09-28 11:10:41 +02:00
fast_commit.c ext4: update 'state->fc_regions_size' after successful memory allocation 2022-10-26 13:25:14 +02:00
fast_commit.h
file.c ext4: avoid crash when inline data creation follows DIO write 2022-10-26 13:25:13 +02:00
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c ext4: make directory inode spreading reflect flexbg size 2022-09-28 11:10:41 +02:00
indirect.c
inline.c ext4: correct max_inline_xattr_value_size computing 2022-08-21 15:16:24 +02:00
inode-test.c
inode.c ext4: place buffer head allocation before handle start 2022-10-26 13:25:14 +02:00
ioctl.c
Kconfig
Makefile
mballoc.c ext4: limit the number of retries after discarding preallocations blocks 2022-09-28 11:10:41 +02:00
mballoc.h
migrate.c ext4: fix warning in 'ext4_da_release_space' 2022-11-10 18:14:28 +01:00
mmp.c
move_extent.c
namei.c ext4: fix BUG_ON() when directory entry has invalid rec_len 2022-11-10 18:14:28 +01:00
page-io.c
readpage.c
resize.c ext4: continue to expand file system when the target size doesn't reach 2022-10-26 13:25:56 +02:00
super.c ext4: ext4_read_bh_lock() should submit IO if the buffer isn't uptodate 2022-10-26 13:25:13 +02:00
symlink.c
sysfs.c
truncate.h
verity.c ext4,f2fs: fix readahead of verity data 2022-11-10 18:14:29 +01:00
xattr_hurd.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c ext4: fix use-after-free in ext4_xattr_set_entry 2022-08-21 15:16:23 +02:00
xattr.h ext4: add EXT4_INODE_HAS_XATTR_SPACE macro in xattr.h 2022-08-21 15:16:23 +02:00