Lines Matching refs:attrp
361 xfs_attr_log_item_op(const struct xfs_attri_log_format *attrp) in xfs_attr_log_item_op() argument
363 return attrp->alfi_op_flags & XFS_ATTRI_OP_FLAGS_TYPE_MASK; in xfs_attr_log_item_op()
373 struct xfs_attri_log_format *attrp; in xfs_attr_log_item() local
382 attrp = &attrip->attri_format; in xfs_attr_log_item()
383 attrp->alfi_ino = args->dp->i_ino; in xfs_attr_log_item()
385 attrp->alfi_op_flags = attr->xattri_op_flags; in xfs_attr_log_item()
386 attrp->alfi_value_len = nv->value.i_len; in xfs_attr_log_item()
388 switch (xfs_attr_log_item_op(attrp)) { in xfs_attr_log_item()
392 attrp->alfi_igen = VFS_I(args->dp)->i_generation; in xfs_attr_log_item()
393 attrp->alfi_old_name_len = nv->name.i_len; in xfs_attr_log_item()
394 attrp->alfi_new_name_len = nv->new_name.i_len; in xfs_attr_log_item()
398 attrp->alfi_igen = VFS_I(args->dp)->i_generation; in xfs_attr_log_item()
401 attrp->alfi_name_len = nv->name.i_len; in xfs_attr_log_item()
406 attrp->alfi_attr_filter = args->attr_filter; in xfs_attr_log_item()
550 struct xfs_attri_log_format *attrp) in xfs_attri_validate() argument
552 unsigned int op = xfs_attr_log_item_op(attrp); in xfs_attri_validate()
554 if (attrp->alfi_op_flags & ~XFS_ATTRI_OP_FLAGS_TYPE_MASK) in xfs_attri_validate()
557 if (attrp->alfi_attr_filter & ~XFS_ATTRI_FILTER_MASK) in xfs_attri_validate()
560 if (!xfs_attr_check_namespace(attrp->alfi_attr_filter & in xfs_attri_validate()
569 if (attrp->alfi_value_len != sizeof(struct xfs_parent_rec)) in xfs_attri_validate()
571 if (!xfs_attri_validate_namelen(attrp->alfi_name_len)) in xfs_attri_validate()
573 if (!(attrp->alfi_attr_filter & XFS_ATTR_PARENT)) in xfs_attri_validate()
580 if (attrp->alfi_value_len > XATTR_SIZE_MAX) in xfs_attri_validate()
582 if (!xfs_attri_validate_namelen(attrp->alfi_name_len)) in xfs_attri_validate()
588 if (attrp->alfi_value_len != 0) in xfs_attri_validate()
590 if (!xfs_attri_validate_namelen(attrp->alfi_name_len)) in xfs_attri_validate()
596 if (!xfs_attri_validate_namelen(attrp->alfi_old_name_len)) in xfs_attri_validate()
598 if (!xfs_attri_validate_namelen(attrp->alfi_new_name_len)) in xfs_attri_validate()
600 if (attrp->alfi_value_len != sizeof(struct xfs_parent_rec)) in xfs_attri_validate()
602 if (!(attrp->alfi_attr_filter & XFS_ATTR_PARENT)) in xfs_attri_validate()
609 return xfs_verify_ino(mp, attrp->alfi_ino); in xfs_attri_validate()
635 struct xfs_attri_log_format *attrp, in xfs_attri_recover_work() argument
649 switch (xfs_attr_log_item_op(attrp)) { in xfs_attri_recover_work()
653 error = xlog_recover_iget_handle(mp, attrp->alfi_ino, in xfs_attri_recover_work()
654 attrp->alfi_igen, &ip); in xfs_attri_recover_work()
657 error = xlog_recover_iget(mp, attrp->alfi_ino, &ip); in xfs_attri_recover_work()
662 XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp, attrp, in xfs_attri_recover_work()
663 sizeof(*attrp)); in xfs_attri_recover_work()
680 attr->xattri_op_flags = xfs_attr_log_item_op(attrp); in xfs_attri_recover_work()
701 args->attr_filter = attrp->alfi_attr_filter & XFS_ATTRI_FILTER_MASK; in xfs_attri_recover_work()
746 struct xfs_attri_log_format *attrp; in xfs_attr_recover_work() local
755 attrp = &attrip->attri_format; in xfs_attr_recover_work()
756 if (!xfs_attri_validate(mp, attrp) || in xfs_attr_recover_work()
757 !xfs_attr_namecheck(attrp->alfi_attr_filter, nv->name.i_addr, in xfs_attr_recover_work()
761 attr = xfs_attri_recover_work(mp, dfp, attrp, &ip, nv); in xfs_attr_recover_work()