]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: count the blocks in a btree
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 19 Sep 2016 00:25:20 +0000 (10:25 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 19 Sep 2016 00:25:20 +0000 (10:25 +1000)
commit700bf0677b21689c11de0d87d7e5edc0e47e2ada
tree8b421e59d4ebc171b0d7038d957cfd2b824c8db3
parentd486e1bc7c4d1eac98648ec9dba454ef44c53072
xfs: count the blocks in a btree

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