]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: check that the rtrmapbt maxlevels doesn't increase when growing fs
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:20:32 +0000 (16:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:06 +0000 (13:06 -0800)
commit59a57acbce282d5ff0ddcc308b934549b340c713
tree7f4cedbe0c59f5d537d2e7057546a4b4411f0555
parentb3683c74bf17e9f4e33cc8e13c73d29972b19765
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_fsops.c
fs/xfs/xfs_rtalloc.c
fs/xfs/xfs_rtalloc.h
fs/xfs/xfs_trace.h