summaryrefslogtreecommitdiff
tag namescrub-dir-iget-fixes-6.4_2023-04-11 (31d285f9ec97c7432856bbe656e1f9a84ef89ab8)
tag date2023-04-11 19:55:34 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 6bb9209cee...
xfs: fix iget usage in directory scrub [v24.5]
In this series, we fix some problems with how the directory scrubber grabs child inodes. First, we want to reduce EDEADLOCK returns by replacing fixed-iteration loops with interruptible trylock loops. Second, we add UNTRUSTED to the child iget call so that we can detect a dirent that points to an unallocated inode. Third, we fix a bug where we weren't checking the inode pointed to by dotdot entries at all. Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZDYdpgAKCRBKO3ySh0YR ppr6AP4ijk/S++TY7lbKCj9lUE4VlzXhg1Sbp0GcDeUn1Kls4gEA/ckADS5qvZ5K wvlo0mWW2L3Rd4w9IpuduMLZ1x/Ojw8= =KG1h -----END PGP SIGNATURE-----