Merge tag 'scrub-parent-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:32 +0000 (07:10 +1000)
committerDave Chinner <dchinner@redhat.com>
Thu, 13 Apr 2023 21:10:32 +0000 (07:10 +1000)
commita44667226d32a168a0953f9382cd8503ec947d7d
treedad002cffdfb602ca06bb6c52a24d9d151f2fffe
parentf697c2cc15bd42e9e0c7c33dea9e9b7b507877d0
parent0916056eba4fd816f8042a3960597c316ea10256
Merge tag 'scrub-parent-fixes-6.4_2023-04-12' of git://git./linux/kernel/git/djwong/xfs-linux into guilt/xfs-for-next

xfs: fix bugs in parent pointer checking [v24.5]

Jan Kara pointed out that the VFS doesn't take i_rwsem of a child
subdirectory that is being moved from one parent to another.  Upon
deeper analysis, I realized that this was the source of a very hard to
trigger false corruption report in the parent pointer checking code.

Now that we've refactored how directory walks work in scrub, we can also
get rid of all the unnecessary and broken locking to make parent pointer
scrubbing work properly.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>