]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: remove the call to xfs_buf_reverify in xfs_trans_read_buf_map
authorChristoph Hellwig <hch@lst.de>
Fri, 29 May 2026 05:43:58 +0000 (07:43 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 9 Jun 2026 07:14:41 +0000 (09:14 +0200)
commitf8e9350fff08217591eaab01551a7a253fbb1fc0
treebd7123e30d02ef5ef3de6f26453c770e6be1b59d
parent1113a6d6d5d1336f4415fa1367aac0f853f0892d
xfs: remove the call to xfs_buf_reverify in xfs_trans_read_buf_map

xfs_trans_read_buf_map asserts bp->b_ops is non-NULL just before
calling xfs_buf_reverify which is a no-op if bp->b_ops is set, making the
call dead code ever since it as added in commit 1aff5696f3e0 ("xfs: always
assign buffer verifiers when one is provided").

Remove the useless call, mark xfs_buf_reverify static and clean up the
branch dealing with a buffer attached to the transaction in a bit by
deduplicating and keeping together the asserts and removing the bip
variable only used once outside of asserts and tracing.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
fs/xfs/xfs_trans_buf.c