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;
 
        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;
 
        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;
 
 
  * 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
 
         */
        attrp = &attrip->attri_format;
        attrp->alfi_ino = attr->xattri_da_args->dp->i_ino;
-       ASSERT(!(attr->xattri_op_flags & ~XFS_ATTR_OP_FLAGS_TYPE_MASK));
+       ASSERT(!(attr->xattri_op_flags & ~XFS_ATTRI_OP_FLAGS_TYPE_MASK));
        attrp->alfi_op_flags = attr->xattri_op_flags;
        attrp->alfi_value_len = attr->xattri_da_args->valuelen;
        attrp->alfi_name_len = attr->xattri_da_args->namelen;
        struct xfs_attri_log_format     *attrp)
 {
        unsigned int                    op = attrp->alfi_op_flags &
-                                            XFS_ATTR_OP_FLAGS_TYPE_MASK;
+                                            XFS_ATTRI_OP_FLAGS_TYPE_MASK;
 
        if (attrp->__pad != 0)
                return false;
 
-       if (attrp->alfi_op_flags & ~XFS_ATTR_OP_FLAGS_TYPE_MASK)
+       if (attrp->alfi_op_flags & ~XFS_ATTRI_OP_FLAGS_TYPE_MASK)
                return false;
 
        if (attrp->alfi_attr_filter & ~XFS_ATTRI_FILTER_MASK)
 
        /* alfi_op_flags should be either a set or remove */
        switch (op) {
-       case XFS_ATTR_OP_FLAGS_SET:
-       case XFS_ATTR_OP_FLAGS_REPLACE:
-       case XFS_ATTR_OP_FLAGS_REMOVE:
+       case XFS_ATTRI_OP_FLAGS_SET:
+       case XFS_ATTRI_OP_FLAGS_REPLACE:
+       case XFS_ATTRI_OP_FLAGS_REMOVE:
                break;
        default:
                return false;
 
        attr->xattri_da_args = args;
        attr->xattri_op_flags = attrp->alfi_op_flags &
-                                               XFS_ATTR_OP_FLAGS_TYPE_MASK;
+                                               XFS_ATTRI_OP_FLAGS_TYPE_MASK;
 
        args->dp = ip;
        args->geo = mp->m_attr_geo;
        args->op_flags = XFS_DA_OP_RECOVERY | XFS_DA_OP_OKNOENT;
 
        switch (attr->xattri_op_flags) {
-       case XFS_ATTR_OP_FLAGS_SET:
-       case XFS_ATTR_OP_FLAGS_REPLACE:
+       case XFS_ATTRI_OP_FLAGS_SET:
+       case XFS_ATTRI_OP_FLAGS_REPLACE:
                args->value = attrip->attri_value;
                args->valuelen = attrp->alfi_value_len;
                args->total = xfs_attr_calc_size(args, &local);
                else
                        attr->xattri_dela_state = xfs_attr_init_add_state(args);
                break;
-       case XFS_ATTR_OP_FLAGS_REMOVE:
+       case XFS_ATTRI_OP_FLAGS_REMOVE:
                if (!xfs_inode_hasattr(args->dp))
                        goto out;
                attr->xattri_dela_state = xfs_attr_init_remove_state(args);