]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: document the XFS_ALLOC_AGFL_RESERVE constant
authorDarrick J. Wong <djwong@kernel.org>
Fri, 6 May 2022 19:22:36 +0000 (15:22 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 6 May 2022 19:22:36 +0000 (15:22 -0400)
commitbc4d60eba3f225f7ca1023d1f3b5caafd714813e
treee8e253b542daee8b11f90bd60b1f8adbae0c664a
parentf040050e37cd905b2437b74eb69693908d0a7907
xfs: document the XFS_ALLOC_AGFL_RESERVE constant

Source kernel commit: 93defd5a15dd74791532692cc59be3a1aaa045fe

Currently, we use this undocumented macro to encode the minimum number
of blocks needed to replenish a completely empty AGFL when an AG is
nearly full.  This has lead to confusion on the part of the maintainers,
so let's document what the value actually means, and move it to
xfs_alloc.c since it's not used outside of that module.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h