diff options
author | Allison Henderson <allison.henderson@oracle.com> | 2021-05-21 09:57:15 +0200 |
---|---|---|
committer | Allison Henderson <allison.henderson@oracle.com> | 2021-06-09 18:33:14 +0200 |
commit | 4a4957c16dc674d1306a3b43d6b07ed93a7b7a14 (patch) | |
tree | f30372b475ba8ea317127c5f452959966da5c352 /fs/xfs/libxfs/xfs_attr.c | |
parent | xfs: Clean up xfs_attr_node_addname_clear_incomplete (diff) | |
download | linux-4a4957c16dc674d1306a3b43d6b07ed93a7b7a14.tar.xz linux-4a4957c16dc674d1306a3b43d6b07ed93a7b7a14.zip |
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 <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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_attr.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_attr.c b/fs/xfs/libxfs/xfs_attr.c index 2387a41b705e..a0edebc098ea 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: |