xfs: invalidate dentries for a file before moving it to the orphanage
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:30 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 23:55:19 +0000 (16:55 -0700)
commit5e1c7d0b29f7e05b01e448d2579a469cf3a0d350
tree4f80b8ee1c0b79370aad8cf89646054cc10c741c
parent6d335233fe6952189c949d65ab16d92afb0b8fb4
xfs: invalidate dentries for a file before moving it to the orphanage

Invalidate the cached dentries that point to the file that we're moving
to lost+found before we actually move it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/orphanage.c
fs/xfs/scrub/trace.h