]> www.infradead.org Git - users/hch/misc.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)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 13 Dec 2024 01:45:09 +0000 (17:45 -0800)
commit6f4669708a69fd21f0299c2d5c4780a6ce358ab5
tree63523a033a4a83942cf6a83a33fabfd635536e6b
parentaa7bfb537edf62085d7718845f6644b0e4efb9df
xfs: set XFS_SICK_INO_SYMLINK_ZAPPED explicitly when zapping a symlink

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>
fs/xfs/scrub/symlink_repair.c