Lines Matching defs:tx
270 zfs_unlinked_add(znode_t *zp, dmu_tx_t *tx)
277 VERIFY0(zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx));
293 dmu_tx_t *tx;
337 tx = dmu_tx_create(zfsvfs->z_os);
338 dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_FALSE);
339 error = dmu_tx_assign(tx, TXG_WAIT);
341 dmu_tx_abort(tx);
347 &zp->z_links, sizeof (zp->z_links), tx));
348 dmu_tx_commit(tx);
375 dmu_tx_t *tx;
395 tx = dmu_tx_create(zfsvfs->z_os);
396 dmu_tx_hold_sa(tx, dzp->z_sa_hdl, B_FALSE);
397 dmu_tx_hold_zap(tx, dzp->z_id, FALSE, zap->za_name);
398 dmu_tx_hold_sa(tx, xzp->z_sa_hdl, B_FALSE);
399 dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, FALSE, NULL);
401 zfs_sa_upgrade_txholds(tx, xzp);
402 dmu_tx_mark_netfree(tx);
403 error = dmu_tx_assign(tx, TXG_WAIT);
405 dmu_tx_abort(tx);
411 error = zfs_link_destroy(dzp, zap->za_name, xzp, tx, 0, NULL);
414 dmu_tx_commit(tx);
432 dmu_tx_t *tx;
463 * in the same tx, like in zfs_znode_delete(). Otherwise, if
496 tx = dmu_tx_create(os);
497 dmu_tx_hold_free(tx, zp->z_id, 0, DMU_OBJECT_END);
498 dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, FALSE, NULL);
500 dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, TRUE, NULL);
502 dmu_tx_hold_free(tx, acl_obj, 0, DMU_OBJECT_END);
504 zfs_sa_upgrade_txholds(tx, zp);
505 error = dmu_tx_assign(tx, TXG_WAIT);
512 dmu_tx_abort(tx);
532 zap_add_int(os, zfsvfs->z_unlinkedobj, xattr_obj, tx));
539 zap_remove_int(os, zfsvfs->z_unlinkedobj, zp->z_id, tx));
549 zfs_znode_delete(zp, tx);
552 dmu_tx_commit(tx);
579 zfs_link_create(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx,
616 8, 1, &value, tx);
650 error = sa_bulk_update(zp->z_sa_hdl, bulk, count, tx);
667 error = sa_bulk_update(dzp->z_sa_hdl, bulk, count, tx);
695 zfs_dropname(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx,
708 name, mt, tx);
710 error = zap_remove(zp->z_zfsvfs->z_os, dzp->z_id, name, tx);
724 zfs_link_destroy(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx,
750 error = zfs_dropname(dzp, name, zp, tx, flag);
776 error = sa_bulk_update(zp->z_sa_hdl, bulk, count, tx);
781 error = zfs_dropname(dzp, name, zp, tx, flag);
799 error = sa_bulk_update(dzp->z_sa_hdl, bulk, count, tx);
805 zfs_unlinked_add(zp, tx);
824 dmu_tx_t *tx;
842 tx = dmu_tx_create(zfsvfs->z_os);
843 dmu_tx_hold_sa_create(tx, acl_ids.z_aclp->z_acl_bytes +
845 dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_TRUE);
846 dmu_tx_hold_zap(tx, DMU_NEW_OBJECT, FALSE, NULL);
849 zfs_fuid_txhold(zfsvfs, tx);
850 error = dmu_tx_assign(tx, TXG_WAIT);
853 dmu_tx_abort(tx);
857 zfs_mknode(zp, vap, tx, cr, IS_XATTR, &xzp, &acl_ids);
860 zfs_fuid_sync(zfsvfs, tx);
867 sizeof (xzp->z_id), tx));
869 zfs_log_create(zfsvfs->z_log, tx, TX_MKXATTR, zp, xzp, "", NULL,
873 dmu_tx_commit(tx);