Commit 2054cf05 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: factor out a xfs_btree_owner helper



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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
[djwong: break this up into two patches for the owner check]
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
parent 07b7f2e3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment