diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 11:15:51 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-09-17 18:55:10 -0700 |
commit | b5a2d05768f1c52dd92553e17a2bfbf9d166d3eb (patch) | |
tree | 460ae74865b6b86dcd9fb2fec2a019ad1292fe4f /fs/xfs/libxfs/xfs_alloc.h | |
parent | f130283d8c59b1c266b6729976c8894a7c16b24e (diff) |
xfs: fix maxlevels comparisons in the btree staging code
The btree geometry computation function has an off-by-one error in that
it does not allow maximally tall btrees (nlevels == XFS_BTREE_MAXLEVELS).
This can result in repairs failing unnecessarily on very fragmented
filesystems. Subsequent patches to remove MAXLEVELS usage in favor of
the per-btree type computations will make this a much more likely
occurrence.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.h')
0 files changed, 0 insertions, 0 deletions