xfs: factor out a btree block owner check
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:23 +0000 (12:35 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:23 +0000 (12:35 -0800)
commit186f20c003199824eb3eb3b78e4eb7c2535a8ffc
tree48985505d0703302e835c4bff056fa91a3f78da7
parent2054cf051698d30cc9479678c2b807a364248f38
xfs: factor out a btree block owner check

Hoist the btree block owner check into a separate helper so that we
don't have an ugly multiline if statement.

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