]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 5 Sep 2018 08:30:45 +0000 (10:30 +0200)
commitde35240952f5f4707f2a78b964e65e0ffe1a137b
tree68e52a4fc85ad09b2d71a1a2e02cadc3030b735c
parent2059f6d136fbcacc50c426e1a481df20a1f90eac
xfs: convert XFS_AGFL_SIZE to a helper function

BugLink: http://bugs.launchpad.net/bugs/1788897
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_format.h
fs/xfs/xfs_fsops.c