]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: dont check metadata directory dirent inumbers
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:24:18 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:27 +0000 (18:01 -0800)
commit92657514ddfd6799346717931a48add079e9d6da
tree1170b3b6ca8a6dce9f80822fbdbfc135a455eb20
parent93f4922c92b8d243ded7af84c834c6cfb29ac05d
xfs_repair: dont check metadata directory dirent inumbers

Phase 6 always rebuilds the entire metadata directory tree, and repair
quietly ignores all the DIFLAG2_METADATA directory inodes that it finds.
As a result, none of the metadata directories are marked inuse in the
incore data.  Therefore, the is_inode_free checks are not valid for
anything we find in a metadata directory.

Therefore, avoid checking is_inode_free when scanning metadata directory
dirents.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/libxfs_api_defs.h
repair/dir2.c