]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fsverity: don't issue readahead for non-ENOENT errors from __filemap_get_folio
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Feb 2026 06:06:30 +0000 (07:06 +0100)
committerEric Biggers <ebiggers@kernel.org>
Mon, 2 Feb 2026 19:31:21 +0000 (11:31 -0800)
commit23eec9fd64b2889286f31340371d67babfe54155
treec0799939f8f5d546226cba9920c9f1189ed489fc
parent821ddd25fbe88ea60e9c35cfb76c2ddeb1ffae26
fsverity: don't issue readahead for non-ENOENT errors from __filemap_get_folio

Issuing more reads on errors is not a good idea, especially when the
most common error here is -ENOMEM.

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