xfs: document the XFS_ALLOC_AGFL_RESERVE constant
authorDarrick J. Wong <djwong@kernel.org>
Wed, 16 Mar 2022 18:38:27 +0000 (11:38 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 21 Mar 2022 20:57:45 +0000 (13:57 -0700)
commit93defd5a15dd74791532692cc59be3a1aaa045fe
treeb4e1f02bdc9629e2f84cfac55344171cd63a42eb
parent01728b44ef1b714756607be0210fbcf60c78efce
xfs: document the XFS_ALLOC_AGFL_RESERVE constant

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>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h