]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: consolidate fsverity_info lookup in buffer.c
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Feb 2026 06:06:36 +0000 (07:06 +0100)
committerEric Biggers <ebiggers@kernel.org>
Tue, 3 Feb 2026 01:15:26 +0000 (17:15 -0800)
commitf6ae956dfb3402bf6d5726080c2999f107bb5dd2
treeeac45ea59b064eecde55fc1306a598902c446786
parent47bc2ac9b63da87362ce890543d8d955e0ccc36a
fs: consolidate fsverity_info lookup in buffer.c

Look up the fsverity_info once in end_buffer_async_read_io, and then
pass it along to the I/O completion workqueue in
struct postprocess_bh_ctx.

This amortizes the lookup better once it becomes less efficient.

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