]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: adjust parent pointer scrubber for sb-rooted metadata files
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Sep 2024 20:41:00 +0000 (13:41 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:10:42 +0000 (18:10 -0700)
commit597ae52c08e7a91bc40321c7b6b065c7cddb63b5
tree94e24df90ad33c00a2f7fa4522a195224ad02f82
parent5febb324eef133d475ba3b1aacf9e93689818a13
xfs: adjust parent pointer scrubber for sb-rooted metadata files

Starting with the metadata directory feature, we're allowed to call the
directory and parent pointer scrubbers for every metadata file,
including the ones that are children of the superblock.

For these children, checking the link count against the number of parent
pointers is a bit funny -- there's no such thing as a parent pointer for
a child of the superblock since there's no corresponding dirent.  For
purposes of validating nlink, we pretend that there is a parent pointer.

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