diff options
author | Dave Chinner <dchinner@redhat.com> | 2022-05-11 17:05:23 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2022-05-11 17:05:23 +1000 |
commit | 709c8632597c3276cd21324b0256628f1a7fd4df (patch) | |
tree | bec82810123cce8daa5553d12e95d29079ad2580 /fs/xfs/libxfs/xfs_log_format.h | |
parent | xfs: make xattri_leaf_bp more useful (diff) | |
download | linux-dev-709c8632597c3276cd21324b0256628f1a7fd4df.tar.xz linux-dev-709c8632597c3276cd21324b0256628f1a7fd4df.zip |
xfs: rework deferred attribute operation setup
Logged attribute intents only have set and remove types - there is
no separate intent type for a replace operation. We should have a
separate type for a replace operation, as it needs to perform
operations that neither SET or REMOVE can perform.
Add this type to the intent items and rearrange the deferred
operation setup to reflect the different operations we are
performing.
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_log_format.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_log_format.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_log_format.h b/fs/xfs/libxfs/xfs_log_format.h index a27492e99673..f7edd1ecf6d9 100644 --- a/fs/xfs/libxfs/xfs_log_format.h +++ b/fs/xfs/libxfs/xfs_log_format.h @@ -908,6 +908,7 @@ struct xfs_icreate_log { */ #define XFS_ATTR_OP_FLAGS_SET 1 /* Set the attribute */ #define XFS_ATTR_OP_FLAGS_REMOVE 2 /* Remove the attribute */ +#define XFS_ATTR_OP_FLAGS_REPLACE 3 /* Replace the attribute */ #define XFS_ATTR_OP_FLAGS_TYPE_MASK 0xFF /* Flags type mask */ /* |