]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: factor out a xfs_btree_owner helper
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:01:00 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:37 +0000 (11:37 -0700)
commit9fba69bb4897bc773bdab0c6b3fafc2aba0ff238
tree4ae33a815df4cd31bb1b09c800cd9d9682c6c9af
parent6cb918e8b52ad42a1e985b03d289e5e806fbb735
xfs: factor out a xfs_btree_owner helper

Source kernel commit: 2054cf051698d30cc9479678c2b807a364248f38

Split out a helper to calculate the owner for a given btree instead of
duplicating the logic in two places.  While we're at it, make the
bc_ag/bc_ino switch logic depend on the correct geometry flag.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: break this up into two patches for the owner check]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_btree.c