]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: clean up XFS_MIN_FREELIST macros
authorDave Chinner <dchinner@redhat.com>
Fri, 3 Jul 2015 01:54:38 +0000 (11:54 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 3 Jul 2015 01:54:38 +0000 (11:54 +1000)
commitd29c24323bad4513d82467ac6b5b9d5f70ec82a5
tree913bf10259468397055c20eb00ae848194bac6fe
parent33f38513bd1502aeae05b2eff47369e8caa46fc1
xfs: clean up XFS_MIN_FREELIST macros

We no longer calculate the minimum freelist size from the on-disk
AGF, so we don't need the macros used for this. That means the
nested macros can be cleaned up, and turn this into an actual
function so the logic is clear and concise. This will make it much
easier to add support for the rmap btree when the time comes.

This also gets rid of the XFS_AG_MAXLEVELS macro used by these
freelist macros as it is simply a wrapper around a single variable.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_bmap.c
libxfs/xfs_format.h
libxfs/xfs_trans_resv.h
libxfs/xfs_trans_space.h
mkfs/xfs_mkfs.c
repair/phase5.c
repair/xfs_repair.c