xfs: teach scrub to check file nlinks
Create the necessary scrub code to walk the filesystem's directory tree so that we can compute file link counts. Similar to quotacheck, we create an incore shadow array of link count information and then we walk the filesystem a second time to compare the link counts. We need live updates to keep the information up to date during the lengthy scan, so this scrubber remains disabled until the next patch. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Showing
fs/xfs/scrub/nlinks.c
0 → 100644
This diff is collapsed.
fs/xfs/scrub/nlinks.h
0 → 100644
Please register or sign in to comment