]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: clean up final attr removal in xfs_attr_set_iter
authorDave Chinner <dchinner@redhat.com>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
commitcf76c91718081dd3e199192cf5faabaaf8029887
tree4f636e40d38bd448fcc8bef7a4b3fc9979b03a78
parentd6d0318ddaebb74b7ad4c097a545b6fef1252829
xfs: clean up final attr removal in xfs_attr_set_iter

Source kernel commit: b11fa61bc4c679172a35e48d149f797ee37db3fc

Clean up the final leaf/node states in xfs_attr_set_iter() to
further simplify the high level state machine and to set the
completion state correctly. As we are adding a separate state
for node format removal, we need to ensure that node formats
are collapsed back to shortform or empty correctly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson<allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_attr.c
libxfs/xfs_attr.h