]> www.infradead.org Git - users/hch/xfsprogs.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>
Thu, 28 Nov 2024 02:33:12 +0000 (18:33 -0800)
commit12741dd5a4e44580f50b10279bde8041f8a98d96
tree3c17863722973b79d5d3a8ec68578708d5ce873e
parentbe9ed1e13f61c02b1b0c0cdf54cb64cc63cff83a
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