]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: consolidate fsverity_info lookup
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Feb 2026 06:06:38 +0000 (07:06 +0100)
committerEric Biggers <ebiggers@kernel.org>
Wed, 4 Feb 2026 19:31:54 +0000 (11:31 -0800)
commit45dcb3ac9832650e5fdc2046cc7cdb97cebbb888
treee26a88cb41f1fc7b6dbf99d2551095d7e714533d
parentd0b57f0962adcc2a92947a9fd9b86216b5322797
f2fs: consolidate fsverity_info lookup

Look up the fsverity_info once in f2fs_mpage_readpages, and then use it
for the readahead, local verification of holes and pass it along to the
I/O completion workqueue in struct bio_post_read_ctx.  Do the same
thing in f2fs_get_read_data_folio for reads that come from garbage
collection and other background activities.

This amortizes the lookup better once it becomes less efficient.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20260202060754.270269-10-hch@lst.de
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
fs/f2fs/compress.c
fs/f2fs/data.c
fs/f2fs/f2fs.h