Merge tag 'scrub-dir-iget-fixes-6.4_2023-04-12' of git://git.kernel.org/pub/scm/linux...
authorDave Chinner <david@fromorbit.com>
Thu, 13 Apr 2023 21:10:21 +0000 (07:10 +1000)
committerDave Chinner <dchinner@redhat.com>
Thu, 13 Apr 2023 21:10:21 +0000 (07:10 +1000)
commitf697c2cc15bd42e9e0c7c33dea9e9b7b507877d0
tree0835aa08b838a7fe092b6a1e732822fd30b944ad
parentb1bdab25262a6ac5fb04a04c14da4e25afddadb9
parent6bb9209ceebb07fd07cec25af04eed1809c654de
Merge tag 'scrub-dir-iget-fixes-6.4_2023-04-12' of git://git./linux/kernel/git/djwong/xfs-linux into guilt/xfs-for-next

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>
Signed-off-by: Dave Chinner <david@fromorbit.com>