The parent pointer code needs to do a deferred parent pointer set
operation with the xattr log intent code. Declare a new logged xattr
opcode and push it through the log.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
switch (op) {
case XFS_ATTR_DEFER_SET:
+ new->xattri_op_flags = XFS_ATTRI_OP_FLAGS_PPTR_SET;
+ new->xattri_dela_state = xfs_attr_init_add_state(args);
+ break;
case XFS_ATTR_DEFER_REPLACE:
/* will be added in subsequent patches */
ASSERT(0);
#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_PPTR_SET 4 /* Set parent pointer */
#define XFS_ATTRI_OP_FLAGS_PPTR_REMOVE 5 /* Remove parent pointer */
#define XFS_ATTRI_OP_FLAGS_TYPE_MASK 0xFF /* Flags type mask */