]> 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>
Mon, 23 Sep 2024 20:42:05 +0000 (13:42 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Oct 2024 13:55:46 +0000 (15:55 +0200)
commitfc77ec5ecbb29c302a74fe2e022cf1db190a938b
tree3b5a245c76d82f382f87a458c7ccf252b97d96e3
parentfdc43dec127ed6787219f8d1fdc59d484ccc03f8
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