xfs: create a standard btree size calculator code
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 19 Sep 2016 00:25:03 +0000 (10:25 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 19 Sep 2016 00:25:03 +0000 (10:25 +1000)
commit4ed3f68792f6a9c21a290ae777565e7562a09653
treef44cb6765a8bb601b68b2703d9a80a14d23a0bb8
parenta1d46cffaf40e04acb0ecab14980ece3ef1ab933
xfs: create a standard btree size calculator code

Create a helper to generate AG btree height calculator functions.
This will be used (much) later when we get to the refcount btree.

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