Lines Matching refs:tx

450 zfs_unlinked_add(znode_t *zp, dmu_tx_t *tx)  in zfs_unlinked_add()  argument
458 zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)); in zfs_unlinked_add()
530 dmu_tx_t *tx; in zfs_purgedir() local
549 tx = dmu_tx_create(zfsvfs->z_os); in zfs_purgedir()
550 dmu_tx_hold_sa(tx, dzp->z_sa_hdl, B_FALSE); in zfs_purgedir()
551 dmu_tx_hold_zap(tx, dzp->z_id, FALSE, zap.za_name); in zfs_purgedir()
552 dmu_tx_hold_sa(tx, xzp->z_sa_hdl, B_FALSE); in zfs_purgedir()
553 dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, FALSE, NULL); in zfs_purgedir()
555 zfs_sa_upgrade_txholds(tx, xzp); in zfs_purgedir()
556 error = dmu_tx_assign(tx, TXG_WAIT); in zfs_purgedir()
558 dmu_tx_abort(tx); in zfs_purgedir()
567 error = zfs_link_destroy(&dl, xzp, tx, 0, NULL); in zfs_purgedir()
570 dmu_tx_commit(tx); in zfs_purgedir()
586 dmu_tx_t *tx; in zfs_rmnode() local
638 tx = dmu_tx_create(os); in zfs_rmnode()
639 dmu_tx_hold_free(tx, zp->z_id, 0, DMU_OBJECT_END); in zfs_rmnode()
640 dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, FALSE, NULL); in zfs_rmnode()
642 dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, TRUE, NULL); in zfs_rmnode()
643 dmu_tx_hold_sa(tx, xzp->z_sa_hdl, B_FALSE); in zfs_rmnode()
646 dmu_tx_hold_free(tx, acl_obj, 0, DMU_OBJECT_END); in zfs_rmnode()
648 zfs_sa_upgrade_txholds(tx, zp); in zfs_rmnode()
649 error = dmu_tx_assign(tx, TXG_WAIT); in zfs_rmnode()
656 dmu_tx_abort(tx); in zfs_rmnode()
668 &xzp->z_links, sizeof (xzp->z_links), tx)); in zfs_rmnode()
670 zfs_unlinked_add(xzp, tx); in zfs_rmnode()
675 zap_remove_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)); in zfs_rmnode()
677 zfs_znode_delete(zp, tx); in zfs_rmnode()
679 dmu_tx_commit(tx); in zfs_rmnode()
699 zfs_link_create(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag) in zfs_link_create() argument
735 error = sa_bulk_update(zp->z_sa_hdl, bulk, count, tx); in zfs_link_create()
755 error = sa_bulk_update(dzp->z_sa_hdl, bulk, count, tx); in zfs_link_create()
761 8, 1, &value, tx); in zfs_link_create()
770 zfs_dropname(zfs_dirlock_t *dl, znode_t *zp, znode_t *dzp, dmu_tx_t *tx, in zfs_dropname() argument
781 dzp->z_id, dl->dl_name, MT_EXACT, tx); in zfs_dropname()
784 dzp->z_id, dl->dl_name, MT_FIRST, tx); in zfs_dropname()
787 dzp->z_id, dl->dl_name, tx); in zfs_dropname()
801 zfs_link_destroy(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag, in zfs_link_destroy() argument
838 error = zfs_dropname(dl, zp, dzp, tx, flag); in zfs_link_destroy()
867 error = sa_bulk_update(zp->z_sa_hdl, bulk, count, tx); in zfs_link_destroy()
873 error = zfs_dropname(dl, zp, dzp, tx, flag); in zfs_link_destroy()
892 error = sa_bulk_update(dzp->z_sa_hdl, bulk, count, tx); in zfs_link_destroy()
899 zfs_unlinked_add(zp, tx); in zfs_link_destroy()
920 dmu_tx_t *tx; in zfs_make_xattrdir() local
940 tx = dmu_tx_create(zfsvfs->z_os); in zfs_make_xattrdir()
941 dmu_tx_hold_sa_create(tx, acl_ids.z_aclp->z_acl_bytes + in zfs_make_xattrdir()
943 dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_TRUE); in zfs_make_xattrdir()
944 dmu_tx_hold_zap(tx, DMU_NEW_OBJECT, FALSE, NULL); in zfs_make_xattrdir()
947 zfs_fuid_txhold(zfsvfs, tx); in zfs_make_xattrdir()
948 error = dmu_tx_assign(tx, TXG_NOWAIT); in zfs_make_xattrdir()
951 dmu_tx_wait(tx); in zfs_make_xattrdir()
952 dmu_tx_abort(tx); in zfs_make_xattrdir()
956 dmu_tx_abort(tx); in zfs_make_xattrdir()
959 zfs_mknode(zp, vap, tx, cr, IS_XATTR, &xzp, &acl_ids); in zfs_make_xattrdir()
962 zfs_fuid_sync(zfsvfs, tx); in zfs_make_xattrdir()
971 sizeof (xzp->z_id), tx)); in zfs_make_xattrdir()
973 (void) zfs_log_create(zfsvfs->z_log, tx, TX_MKXATTR, zp, in zfs_make_xattrdir()
977 dmu_tx_commit(tx); in zfs_make_xattrdir()