]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: count the blocks in a btree
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 00:26:53 +0000 (11:26 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 00:26:53 +0000 (11:26 +1100)
commit2cccc8cee7230141991f142c9ac5273de6514dd1
treea25256c5150d9adf89f8ee4b439e86486a63ecf7
parentfc8c849d1ca5d6d532a3f7c2bfd09aa1269598c3
xfs: count the blocks in a btree

Source kernel commit: c611cc0360cd924448c23ccd70ce8be703fcb4a6

Provide a helper method to count the number of blocks in a short form
btree.  The refcount and rmap btrees need to know the number of blocks
already in use to set up their per-AG block reservations during mount.

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