]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: check that the rtrmapbt maxlevels doesn't increase when growing fs
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:39:56 +0000 (12:39 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:36:24 +0000 (13:36 -0800)
commita81f35e8f0ba587372eefeab410caf74638e1dc3
tree0cbea8425b893a17cbdc439f73ee89c60efe3355
parent2edab56b1dc3128ae74cbbc9534c519f1894f17b
xfs: check that the rtrmapbt maxlevels doesn't increase when growing fs

The size of filesystem transaction reservations depends on the maximum
height (maxlevels) of the realtime btrees.  Since we don't want a grow
operation to increase the reservation size enough that we'll fail the
minimum log size checks on the next mount, constrain growfs operations
if they would cause an increase in those maxlevels.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_fsops.c
fs/xfs/xfs_rtalloc.c
fs/xfs/xfs_rtalloc.h
fs/xfs/xfs_trace.h