]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: check that the rtrefcount maxlevels doesn't increase when growing fs
authorDarrick J. Wong <djwong@kernel.org>
Fri, 9 Aug 2024 13:18:18 +0000 (15:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 Aug 2024 11:53:09 +0000 (13:53 +0200)
commitd0bbe10d58698fc4486bcdadb655cf79de37f53c
treeb566c46dc2c630a89a63413349c366d452fbf9fd
parent5d2dc48acc00535074dc936fa2258551b7156f56
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>
fs/xfs/xfs_fsops.c
fs/xfs/xfs_rtalloc.c