Skip to content

Commit

Permalink
xfs: Fix default ASSERT in xfs_attr_set_iter
Browse files Browse the repository at this point in the history
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 <djwong@kernel.org>
Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
  • Loading branch information
Allison Henderson committed Jun 9, 2021
1 parent 4fd084d commit 4a4957c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/libxfs/xfs_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4a4957c

Please sign in to comment.