]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor agfl length computation function
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Sep 2022 12:56:52 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:04:11 +0000 (11:04 +0200)
commit0323a5b50df49e7d8b00a7f2fdeb4d7909a60f17
treef506f583c265b2138ee5ff59e56152d255603bcb
parent85167a8faff08d180b3d2aa3447d02805a9f3135
xfs: refactor agfl length computation function

commit bfdeccb141af8a7eeff5339a17248ffbac80c13e upstream.

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>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_alloc.c