]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: set XFS_SICK_INO_SYMLINK_ZAPPED explicitly when zapping a symlink
authorDarrick J. Wong <djwong@kernel.org>
Mon, 2 Dec 2024 18:57:28 +0000 (10:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:08 +0000 (18:13 +0100)
commit9a741ed41242ca45c14563e45c73ff6cc24d063c
treea2cca91194a1c5e0afce0f722d0241fd0803fdb0
parent2d981e170fb2528fa4dfbf3f5f762ac59f4b4b2c
xfs: set XFS_SICK_INO_SYMLINK_ZAPPED explicitly when zapping a symlink

commit 6f4669708a69fd21f0299c2d5c4780a6ce358ab5 upstream.

If we need to reset a symlink target to the "durr it's busted" string,
then we clear the zapped flag as well.  However, this should be using
the provided helper so that we don't set the zapped state on an
otherwise ok symlink.

Cc: <stable@vger.kernel.org> # v6.10
Fixes: 2651923d8d8db0 ("xfs: online repair of symbolic links")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/scrub/symlink_repair.c