]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: dont check metadata directory dirent inumbers
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:52 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 31 Jul 2024 01:46:47 +0000 (18:46 -0700)
commitab4b4467379021cab08158ecbab6e953397ec28f
treeed4a3902e4a4193281cbc80b8a7be75bf340ce6b
parente0c9b55e9db7d6a599e7a2eeef1b95bc7d2ed966
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>
libxfs/libxfs_api_defs.h
repair/dir2.c