]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: compute maximum AG btree height for critical reservation calculation
authorDarrick J. Wong <djwong@kernel.org>
Thu, 6 Jan 2022 22:13:21 +0000 (14:13 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jan 2022 00:02:52 +0000 (16:02 -0800)
commit4ecb8bf26de207bff544b7d8e16d6e07a40d8ca3
treed7058fc65a852ab323183c3180437d676fa51c0e
parent62622aa7c09f03c929ae8cf2ed5c991613213e9e
xfs: compute maximum AG btree height for critical reservation calculation

Source kernel commit: b74e15d720d0764345934ebb599a99a077c52533

Compute the actual maximum AG btree height for deciding if a per-AG
block reservation is critically low.  This only affects the sanity check
condition, since we /generally/ will trigger on the 10% threshold.  This
is a long-winded way of saying that we're removing one more usage of
XFS_BTREE_MAXLEVELS.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
include/xfs_mount.h
libxfs/init.c
libxfs/xfs_ag_resv.c