]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: check that the rtrefcount maxlevels doesn't increase when growing fs
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:21:04 +0000 (16:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:14 +0000 (13:06 -0800)
commit88a70768df138b97b36bf1571fcde92907812a3d
tree6e1baf15744a5735f179c58deaf1f420c3a31115
parent8e84e8052bc283ebb37f929eb9fb97483ea7385e
xfs: check that the rtrefcount 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 the rt refcount btree 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