From: Darrick J. Wong Date: Wed, 22 Jun 2022 19:28:52 +0000 (-0500) Subject: xfs: put the xattr intent item op flags in their own namespace X-Git-Tag: v5.19.0-rc0~21 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=209da5f62d10e63855ccded1b5b50d0ead8a052e;p=thirdparty%2Fxfsprogs-dev.git xfs: put the xattr intent item op flags in their own namespace Source kernel commit: b53d212b4b5c29ab16edb7eca2b0e05927b7aa34 The flags that are stored in the extended attr intent log item really should have a separate namespace from the rest of the XFS_ATTR_* flags. Give them one to make it a little more obvious that they're intent item flags. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Reviewed-by: Allison Henderson Signed-off-by: Dave Chinner Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_attr.c b/libxfs/xfs_attr.c index e214e286f..ed81123d4 100644 --- a/libxfs/xfs_attr.c +++ b/libxfs/xfs_attr.c @@ -916,7 +916,7 @@ xfs_attr_defer_add( struct xfs_attr_item *new; int error = 0; - error = xfs_attr_item_init(args, XFS_ATTR_OP_FLAGS_SET, &new); + error = xfs_attr_item_init(args, XFS_ATTRI_OP_FLAGS_SET, &new); if (error) return error; @@ -935,7 +935,7 @@ xfs_attr_defer_replace( struct xfs_attr_item *new; int error = 0; - error = xfs_attr_item_init(args, XFS_ATTR_OP_FLAGS_REPLACE, &new); + error = xfs_attr_item_init(args, XFS_ATTRI_OP_FLAGS_REPLACE, &new); if (error) return error; @@ -955,7 +955,7 @@ xfs_attr_defer_remove( struct xfs_attr_item *new; int error; - error = xfs_attr_item_init(args, XFS_ATTR_OP_FLAGS_REMOVE, &new); + error = xfs_attr_item_init(args, XFS_ATTRI_OP_FLAGS_REMOVE, &new); if (error) return error; diff --git a/libxfs/xfs_attr.h b/libxfs/xfs_attr.h index 1af7abe29..c739caa11 100644 --- a/libxfs/xfs_attr.h +++ b/libxfs/xfs_attr.h @@ -530,7 +530,7 @@ struct xfs_attr_item { enum xfs_delattr_state xattri_dela_state; /* - * Attr operation being performed - XFS_ATTR_OP_FLAGS_* + * Attr operation being performed - XFS_ATTRI_OP_FLAGS_* */ unsigned int xattri_op_flags; diff --git a/libxfs/xfs_log_format.h b/libxfs/xfs_log_format.h index a9d08f3d4..b351b9dc6 100644 --- a/libxfs/xfs_log_format.h +++ b/libxfs/xfs_log_format.h @@ -906,10 +906,10 @@ struct xfs_icreate_log { * Flags for deferred attribute operations. * Upper bits are flags, lower byte is type code */ -#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 */ +#define XFS_ATTRI_OP_FLAGS_SET 1 /* Set the attribute */ +#define XFS_ATTRI_OP_FLAGS_REMOVE 2 /* Remove the attribute */ +#define XFS_ATTRI_OP_FLAGS_REPLACE 3 /* Replace the attribute */ +#define XFS_ATTRI_OP_FLAGS_TYPE_MASK 0xFF /* Flags type mask */ /* * alfi_attr_filter captures the state of xfs_da_args.attr_filter, so it should