]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: confirm dotdot target before replacing it during a repair
authorDarrick J. Wong <djwong@kernel.org>
Wed, 7 Aug 2024 22:54:26 +0000 (15:54 -0700)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Sep 2024 06:07:21 +0000 (08:07 +0200)
commitf5fcf77ab35b1710b4b690516cac584b90cad356
treeb998a26b7050ff1b101784041195fe3d6aef8d58
parent7279d13672b3d64b09af1b0a87011a79ab29d743
xfs: confirm dotdot target before replacing it during a repair

xfs_dir_replace trips an assertion if you tell it to change a dirent to
point to an inumber that it already points at.  Look up the dotdot entry
directly to confirm that we need to make a change.

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