xfs: convert XFS_AGFL_SIZE to a helper function
authorDave Chinner <dchinner@redhat.com>
Wed, 7 Mar 2018 01:08:32 +0000 (17:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2018 09:41:55 +0000 (11:41 +0200)
commitd9a59eac3fd67c559df87c6cf6ab07298012d197
tree8da698d6b26abbc576fde828f2a59bdff1d709b0
parent54978daa9dc55124986a07c2eccd76166a3fe8ef
xfs: convert XFS_AGFL_SIZE to a helper function

commit a78ee256c325ecfaec13cafc41b315bd4e1dd518 upstream.

The AGFL size calculation is about to get more complex, so lets turn
the macro into a function first and remove the macro.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
[darrick: forward port to newer kernel, simplify the helper]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_format.h
fs/xfs/xfs_fsops.c