xfs: add a xfs_btree_ptrs_equal helper
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:43:34 +0000 (12:43 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:43:34 +0000 (12:43 -0800)
commit8c1771c45dfa9dddd4569727c48204b66073d2c2
treee575fa24f56c17787d45fb1f1488c9882ed81fbe
parent5076a6040ca1613e616d84aecfaac5f932db84e0
xfs: add a xfs_btree_ptrs_equal helper

This only has a single caller and thus might be a bit questionable,
but I think it really improves the readability of
xfs_btree_visit_block.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_btree.c