]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fsverity: push out fsverity_info lookup
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Feb 2026 06:06:35 +0000 (07:06 +0100)
committerEric Biggers <ebiggers@kernel.org>
Tue, 3 Feb 2026 01:15:26 +0000 (17:15 -0800)
commit47bc2ac9b63da87362ce890543d8d955e0ccc36a
tree29911e7adbdc938685f2029f80b58fc1d82fc765
parent7e36e044958da7d2cbff391dcfda405f5472ae1d
fsverity: push out fsverity_info lookup

Pass a struct fsverity_info to the verification and readahead helpers,
and push the lookup into the callers.  Right now this is a very dumb
almost mechanic move that open codes a lot of fsverity_info_addr() calls
in the file systems.  The subsequent patches will clean this up.

This prepares for reducing the number of fsverity_info lookups, which
will allow to amortize them better when using a more expensive lookup
method.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Acked-by: David Sterba <dsterba@suse.com> # btrfs
Link: https://lore.kernel.org/r/20260202060754.270269-7-hch@lst.de
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
fs/btrfs/extent_io.c
fs/buffer.c
fs/ext4/readpage.c
fs/f2fs/compress.c
fs/f2fs/data.c
fs/verity/verify.c
include/linux/fsverity.h