]> www.infradead.org Git - users/hch/misc.git/commit
xfs: check pre-metadir fields correctly
authorDarrick J. Wong <djwong@kernel.org>
Mon, 2 Dec 2024 18:57:42 +0000 (10:57 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 13 Dec 2024 01:45:12 +0000 (17:45 -0800)
commit06b20ef09ba16374e1e68f1e8dbe434c4ad4e6fd
treee07ec24f53df8ca11a71a42e7814d45bf4465d52
parente57e083be9b9bc5c341e1245b988f290c09a5ed7
xfs: check pre-metadir fields correctly

The checks that were added to the superblock scrubber for metadata
directories aren't quite right -- the old inode pointers are now defined
to be zeroes until someone else reuses them.  Also consolidate the new
metadir field checks to one place; they were inexplicably scattered
around.

Cc: <stable@vger.kernel.org> # v6.13-rc1
Fixes: 28d756d4d562dc ("xfs: update sb field checks when metadir is turned on")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/agheader.c