summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_message.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-01-05 17:45:48 -0800
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 17:08:41 -0700
commita9989d05111ba2e2cfdea382a051fe86deae3030 (patch)
treedc7f5f22ebe8953db3fdd4f34f7b76621912d74f /fs/xfs/xfs_message.c
parentd257cfbf1031ad0d27c3e461bccd08088431c2b9 (diff)
xfs: compute the maximum height of the rmap btree when reflink enabled
Instead of assuming that the hardcoded XFS_BTREE_MAXLEVELS value is big enough to handle the maximally tall rmap btree when all blocks are in use and maximally shared, let's compute the maximum height assuming the rmapbt consumes as many blocks as possible. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_message.c')
0 files changed, 0 insertions, 0 deletions