]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
xfs: clean up XFS_MIN_FREELIST macros
authorDave Chinner <dchinner@redhat.com>
Mon, 22 Jun 2015 00:13:30 +0000 (10:13 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 22 Jun 2015 00:13:30 +0000 (10:13 +1000)
commit496817b4befced99dff6f23997723bf0962d56b0
treeeeb1f8d39c006b464002387f38b282e2b37965ad
parent396503fc8397e9c832503dd5669c0f11c5e4d046
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>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_trans_resv.h
fs/xfs/libxfs/xfs_trans_space.h
fs/xfs/xfs_filestream.c