]> git.itanic.dy.fi Git - linux-stable/commit
xfs: refactor agfl length computation function
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Dec 2019 19:09:55 +0000 (11:09 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 19 Dec 2019 15:53:48 +0000 (07:53 -0800)
commit1cac233cfe71f21e069705a4930c18e48d897be6
treeed627b50c410a56e4ca66f3634cb090bf3f434c7
parentaf952aeb4a8717fe4c7a872d9699fcfa85aa9e1c
xfs: refactor agfl length computation function

Refactor xfs_alloc_min_freelist to accept a NULL @pag argument, in which
case it returns the largest possible minimum length.  This will be used
in an upcoming patch to compute the length of the AGFL at mkfs time.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_alloc.c