]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_alloc.h
xfs: clean up XFS_MIN_FREELIST macros
authorDave Chinner <dchinner@redhat.com>
Fri, 31 Jul 2015 01:11:56 +0000 (11:11 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 31 Jul 2015 01:11:56 +0000 (11:11 +1000)
commitde046644a01c965e35f9c338f51c1988324f2e03
treeba97ce30cb03d539c5bb85d1ce4f03c4b2c86afb
parentc98e644ed6616505e18861a0a4d2a440a6e04be5
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