summaryrefslogtreecommitdiff
tag namescrub-nlinks_2022-10-14 (892749cc4117da0767bec8875354e4bdc0f603b1)
tag date2022-10-14 14:18:45 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit e00e3099a6...
xfs: online repair of file link counts
Now that we've created the infrastructure to perform live scans of every file in the filesystem and the necessary hook infrastructure to observe live updates, use it to scan directories to compute the correct link counts for files in the filesystem, and reset those link counts. This patchset creates a tailored readdir implementation for scrub because the regular version has to cycle ILOCKs to copy information to userspace. We can't cycle the ILOCK during the nlink scan and we don't need all the other VFS support code (maintaining a readdir cursor and translating XFS structures to VFS structures and back) so it was easier to duplicate the code. Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmNJ0jUACgkQ+H93GTRK tOsvJw/9FVMj+7tg8GpdyxshqezGXvWfiPWMNWihueNoI0RnPooonQeLv8jFicA/ +xfT/+dIfVlTpQfkAq+U5YsivsYA3GasnAS3/75ZLsX7YtUum12QEPCfnQv/KZQq I+1c4WyabGikbkUm/AwpySPV+I5+MzTpYj6b2fDDUOPeVMMa3nN2hHNyT7mC8kXs vaq3wvTxpkQrwYxDNGEqwH2gPFiscKsFadmeNrXUrZtXw56l7ZeCafMF7kUEmFAo ejHV2HIE1hJGcjOIG2eNgTPWg6lgHRaCB9mLHIr56NyjzKkBzD9dG8YwyHBb0QVn HOyQienriU9HykvRW9Ub1pmrx5v2k61pGx6hDJBWknqy/QFK1fnqkgVaAjMRRaHz 8qBNNcxlrm2r0yFBtWl/C/drjlYOFerUuifz30JZe9WSSiDwDJ3kmGxw3nNICV4r Mcjhm91ayh4EJC8z11RaC+WFUF5e4HZUTbbW/z/iYezoGINnP2e8DqMHoihKwPEi QJtzywDITvUen8iLW5CSg+tQseOw+gvYcjyEmFJ1uJOXXtPkzmEK6c5qkPvAvs3B tT42osYSS7s2+fc5/kngTuaPFryXH4k3XMd8TwbpwAXVgRVt9y0zTty/OViHjC7K u8jYLVo/5loWgvi9MV7r/HBCnLrNehiMbVUkuU1y6Y36txnb1es= =HBVs -----END PGP SIGNATURE-----