]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: introduce attr remove initial states into 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)
commit3d7e9d5ced8db4f1808988ccac164c773a8280e1
tree6fcd03896b62b2376366f05196b1c120393dd608
parent5a9d08d86546a6414a564d68a1d3fb05e83d2a29
xfs: introduce attr remove initial states into xfs_attr_set_iter

Source kernel commit: e5d5596a2a1790d8c57938f820aa33e58f90ad0d

We need to merge the add and remove code paths to enable safe
recovery of replace operations. Hoist the initial remove states from
xfs_attr_remove_iter into xfs_attr_set_iter. We will make use of
them in the next patches.

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