summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_attr_item.c
diff options
context:
space:
mode:
authorAndrey Albershteyn <aalbersh@redhat.com>2024-01-24 11:26:44 +0100
committerChandan Babu R <chandanbabu@kernel.org>2024-01-29 13:48:10 +0530
commit82ef1a5356572219f41f9123ca047259a77bd67b (patch)
treeb68d973d02619a0f62bbf8b7b2b9b3e79290e361 /fs/xfs/xfs_attr_item.c
parent41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff)
xfs: reset XFS_ATTR_INCOMPLETE filter on node removal
In XFS_DAS_NODE_REMOVE_ATTR case, xfs_attr_mode_remove_attr() sets filter to XFS_ATTR_INCOMPLETE. The filter is then reset in xfs_attr_complete_op() if XFS_DA_OP_REPLACE operation is performed. The filter is not reset though if XFS just removes the attribute (args->value == NULL) with xfs_attr_defer_remove(). attr code goes to XFS_DAS_DONE state. Fix this by always resetting XFS_ATTR_INCOMPLETE filter. The replace operation already resets this filter in anyway and others are completed at this step hence don't need it. Fixes: fdaf1bb3cafc ("xfs: ATTR_REPLACE algorithm with LARP enabled needs rework") Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_attr_item.c')
0 files changed, 0 insertions, 0 deletions