]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
readahead: push invalidate_lock out of page_cache_ra_unbounded
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Feb 2026 06:06:31 +0000 (07:06 +0100)
committerEric Biggers <ebiggers@kernel.org>
Mon, 2 Feb 2026 20:38:13 +0000 (12:38 -0800)
commitb244c89a70b306e5a91852e00fd8cdd289714505
treedaaa408ed802cad328b2fdd97bbfc94070c3802e
parent23eec9fd64b2889286f31340371d67babfe54155
readahead: push invalidate_lock out of page_cache_ra_unbounded

Require the invalidate_lock to be held over calls to
page_cache_ra_unbounded instead of acquiring it in this function.

This prepares for calling page_cache_ra_unbounded from ->readahead for
fsverity read-ahead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20260202060754.270269-3-hch@lst.de
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
fs/f2fs/file.c
fs/verity/pagecache.c
mm/readahead.c