xfs: refactor btree owner change into a separate visit-blocks function
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 01:10:55 +0000 (11:10 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 01:10:55 +0000 (11:10 +1000)
commit28a89567b8bd95f42c17822d276cccb5b085810d
treeca190ef06cb1c44cab14b72e3f701964e4f880ff
parent105f7d83db4f82ce170893eaaca946754e38541f
xfs: refactor btree owner change into a separate visit-blocks function

Refactor the btree_change_owner function into a more generic apparatus
which visits all blocks in a btree.  We'll use this in a subsequent
patch for counting btree blocks for AG reservations.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_btree.h