]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: refactor btree owner change into a separate visit-blocks function
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 10 Aug 2016 01:29:37 +0000 (11:29 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 10 Aug 2016 01:29:37 +0000 (11:29 +1000)
commitf31736bfd834fb443d5b89b140d88f7d99b269c3
treefa883b554ee04d7b8ab7b6349fc73b39960910f8
parent5d3b7fe1209d135326664acf24e511ba858b5cd6
xfs: refactor btree owner change into a separate visit-blocks function

Source kernel commit: 28a89567b8bd95f42c17822d276cccb5b085810d

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>
libxfs/xfs_btree.c
libxfs/xfs_btree.h