xfs: check the metadata directory inumber in superblocks
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:00 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:34 +0000 (13:38 -0800)
commitdcde94bdeeb94d04b3d8156345c79b9cdfcc4a0d
treea0b4e480afce53bb99b2a6d0ae1f0b15832dce78
parent3d2c34111144a9fd3207ab914a7cd807cbe6a613
xfs: check the metadata directory inumber in superblocks

When metadata directories are enabled, make sure that the secondary
superblocks point to the metadata directory.  This isn't strictly
required because the secondaries are only used to recover damaged
filesystems, and the metadir root inumber is fixed.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/agheader.c