]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 12 Mar 2018 03:27:56 +0000 (20:27 -0700)
commita78ee256c325ecfaec13cafc41b315bd4e1dd518
tree68310eb27f23af69ea2a3c12d332e7a83c5d85c2
parent6231848c3aa5c7378fb0dd7a7fff53e9db7edd09
xfs: convert XFS_AGFL_SIZE to a helper function

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>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_format.h
fs/xfs/scrub/agheader.c
fs/xfs/xfs_fsops.c