]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: consolidate fsverity_info lookup
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Feb 2026 06:06:37 +0000 (07:06 +0100)
committerEric Biggers <ebiggers@kernel.org>
Wed, 4 Feb 2026 19:27:54 +0000 (11:27 -0800)
commitd0b57f0962adcc2a92947a9fd9b86216b5322797
tree48799b68245b34c44ac22224b3f80c562b9a2655
parentf6ae956dfb3402bf6d5726080c2999f107bb5dd2
ext4: consolidate fsverity_info lookup

Look up the fsverity_info once in ext4_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.

This amortizes the lookup better once it becomes less efficient.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Link: https://lore.kernel.org/r/20260202060754.270269-9-hch@lst.de
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
fs/ext4/readpage.c