From: Allison Henderson Date: Fri, 21 May 2021 07:57:15 +0000 (-0700) Subject: xfs: Fix default ASSERT in xfs_attr_set_iter X-Git-Tag: accepted/tizen/unified/20230118.172025~6920^2~28^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a4957c16dc674d1306a3b43d6b07ed93a7b7a14;p=platform%2Fkernel%2Flinux-rpi.git xfs: Fix default ASSERT in xfs_attr_set_iter This ASSERT checks for the state value of RM_SHRINK in the set path which should never happen. Change to ASSERT(0); Suggested-by: Darrick J. Wong Signed-off-by: Allison Henderson Reviewed-by: Chandan Babu R Reviewed-by: Darrick J. Wong --- diff --git a/fs/xfs/libxfs/xfs_attr.c b/fs/xfs/libxfs/xfs_attr.c index 2387a41..a0edebc 100644 --- a/fs/xfs/libxfs/xfs_attr.c +++ b/fs/xfs/libxfs/xfs_attr.c @@ -612,7 +612,7 @@ xfs_attr_set_iter( error = xfs_attr_node_addname_clear_incomplete(dac); break; default: - ASSERT(dac->dela_state != XFS_DAS_RM_SHRINK); + ASSERT(0); break; } out: