[PATCH 03/71] xfs: count the blocks in a btree

Christoph Hellwig hch at infradead.org
Mon Sep 5 10:05:37 CDT 2016


On Thu, Aug 25, 2016 at 04:32:15PM -0700, Darrick J. Wong wrote:
> 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.
> 
> v2: Use btree_visit_blocks instead of open-coding our own traversal
> routine.

Same comments as with the last patch.

Otherwise looks fine:

Reviewed-by: Christoph Hellwig <hch at lst.de>



More information about the xfs mailing list