]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: refactor agfl length computation function
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 22 Jan 2020 16:29:46 +0000 (11:29 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 22 Jan 2020 16:29:46 +0000 (11:29 -0500)
commitb75bb1bd08bfb9ad98d7e26ec09a63ba5fce944d
tree2072e45312b4f6a7759db983774f353ed3f5c9d1
parent846e459c8002bd1ad93004a0ef3c1893a0560a97
xfs: refactor agfl length computation function

Source kernel commit: 1cac233cfe71f21e069705a4930c18e48d897be6

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c