]> www.infradead.org Git - linux.git/commit
xfs: reset rootdir extent size hint after growfsrt
authorDarrick J. Wong <djwong@kernel.org>
Fri, 23 Aug 2024 00:01:07 +0000 (17:01 -0700)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 27 Aug 2024 13:02:14 +0000 (18:32 +0530)
commita24cae8fc1f13f6f6929351309f248fd2e9351ce
treefd249f317a98d21137c8122f1a8b28269750ad91
parent16e1fbdce9c8d084863fd63cdaff8fb2a54e2f88
xfs: reset rootdir extent size hint after growfsrt

If growfsrt is run on a filesystem that doesn't have a rt volume, it's
possible to change the rt extent size.  If the root directory was
previously set up with an inherited extent size hint and rtinherit, it's
possible that the hint is no longer a multiple of the rt extent size.
Although the verifiers don't complain about this, xfs_repair will, so if
we detect this situation, log the root directory to clean it up.  This
is still racy, but it's better than nothing.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_rtalloc.c