From: Darrick J. Wong <djwong@xxxxxxxxxx> If high level code wants to do a deferred xattr remove operation with the NVLOOKUP flag set, we need to push this through the log. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- libxfs/xfs_attr.c | 2 ++ libxfs/xfs_log_format.h | 1 + 2 files changed, 3 insertions(+) diff --git a/libxfs/xfs_attr.c b/libxfs/xfs_attr.c index 3f9c504e755..c38048536af 100644 --- a/libxfs/xfs_attr.c +++ b/libxfs/xfs_attr.c @@ -902,6 +902,8 @@ xfs_attr_defer_add( new->xattri_dela_state = xfs_attr_init_replace_state(args); break; case XFS_ATTRI_OP_FLAGS_REMOVE: + if (args->op_flags & XFS_DA_OP_NVLOOKUP) + new->xattri_op_flags = XFS_ATTRI_OP_FLAGS_NVREMOVE; new->xattri_dela_state = xfs_attr_init_remove_state(args); break; default: diff --git a/libxfs/xfs_log_format.h b/libxfs/xfs_log_format.h index d4531060b6b..bf648b75194 100644 --- a/libxfs/xfs_log_format.h +++ b/libxfs/xfs_log_format.h @@ -1043,6 +1043,7 @@ struct xfs_icreate_log { #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_NVREMOVE 4 /* Remove attr w/ vlookup */ #define XFS_ATTRI_OP_FLAGS_TYPE_MASK 0xFF /* Flags type mask */ /*