Lines Matching refs:tx

468 zfs_unlinked_add(znode_t *zp, dmu_tx_t *tx)  in zfs_unlinked_add()  argument
476 zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)); in zfs_unlinked_add()
594 dmu_tx_t *tx; in zfs_purgedir() local
613 tx = dmu_tx_create(zfsvfs->z_os); in zfs_purgedir()
614 dmu_tx_hold_sa(tx, dzp->z_sa_hdl, B_FALSE); in zfs_purgedir()
615 dmu_tx_hold_zap(tx, dzp->z_id, FALSE, zap.za_name); in zfs_purgedir()
616 dmu_tx_hold_sa(tx, xzp->z_sa_hdl, B_FALSE); in zfs_purgedir()
617 dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, FALSE, NULL); in zfs_purgedir()
619 zfs_sa_upgrade_txholds(tx, xzp); in zfs_purgedir()
620 dmu_tx_mark_netfree(tx); in zfs_purgedir()
621 error = dmu_tx_assign(tx, TXG_WAIT); in zfs_purgedir()
623 dmu_tx_abort(tx); in zfs_purgedir()
632 error = zfs_link_destroy(&dl, xzp, tx, 0, NULL); in zfs_purgedir()
635 dmu_tx_commit(tx); in zfs_purgedir()
651 dmu_tx_t *tx; in zfs_rmnode() local
709 tx = dmu_tx_create(os); in zfs_rmnode()
710 dmu_tx_hold_free(tx, zp->z_id, 0, DMU_OBJECT_END); in zfs_rmnode()
711 dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, FALSE, NULL); in zfs_rmnode()
713 dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, TRUE, NULL); in zfs_rmnode()
714 dmu_tx_hold_sa(tx, xzp->z_sa_hdl, B_FALSE); in zfs_rmnode()
717 dmu_tx_hold_free(tx, acl_obj, 0, DMU_OBJECT_END); in zfs_rmnode()
719 zfs_sa_upgrade_txholds(tx, zp); in zfs_rmnode()
720 dmu_tx_mark_netfree(tx); in zfs_rmnode()
721 error = dmu_tx_assign(tx, TXG_WAIT); in zfs_rmnode()
728 dmu_tx_abort(tx); in zfs_rmnode()
740 &xzp->z_links, sizeof (xzp->z_links), tx)); in zfs_rmnode()
742 zfs_unlinked_add(xzp, tx); in zfs_rmnode()
747 zap_remove_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)); in zfs_rmnode()
749 zfs_znode_delete(zp, tx); in zfs_rmnode()
751 dmu_tx_commit(tx); in zfs_rmnode()
771 zfs_link_create(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag) in zfs_link_create() argument
807 error = sa_bulk_update(zp->z_sa_hdl, bulk, count, tx); in zfs_link_create()
827 error = sa_bulk_update(dzp->z_sa_hdl, bulk, count, tx); in zfs_link_create()
833 8, 1, &value, tx); in zfs_link_create()
864 zfs_dropname(zfs_dirlock_t *dl, znode_t *zp, znode_t *dzp, dmu_tx_t *tx, in zfs_dropname() argument
880 dl->dl_name, mt, tx); in zfs_dropname()
883 tx); in zfs_dropname()
897 zfs_link_destroy(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag, in zfs_link_destroy() argument
934 error = zfs_dropname(dl, zp, dzp, tx, flag); in zfs_link_destroy()
963 error = sa_bulk_update(zp->z_sa_hdl, bulk, count, tx); in zfs_link_destroy()
969 error = zfs_dropname(dl, zp, dzp, tx, flag); in zfs_link_destroy()
988 error = sa_bulk_update(dzp->z_sa_hdl, bulk, count, tx); in zfs_link_destroy()
995 zfs_unlinked_add(zp, tx); in zfs_link_destroy()
1016 dmu_tx_t *tx; in zfs_make_xattrdir() local
1035 tx = dmu_tx_create(zfsvfs->z_os); in zfs_make_xattrdir()
1036 dmu_tx_hold_sa_create(tx, acl_ids.z_aclp->z_acl_bytes + in zfs_make_xattrdir()
1038 dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_TRUE); in zfs_make_xattrdir()
1039 dmu_tx_hold_zap(tx, DMU_NEW_OBJECT, FALSE, NULL); in zfs_make_xattrdir()
1042 zfs_fuid_txhold(zfsvfs, tx); in zfs_make_xattrdir()
1043 error = dmu_tx_assign(tx, TXG_WAIT); in zfs_make_xattrdir()
1046 dmu_tx_abort(tx); in zfs_make_xattrdir()
1049 zfs_mknode(zp, vap, tx, cr, IS_XATTR, &xzp, &acl_ids); in zfs_make_xattrdir()
1052 zfs_fuid_sync(zfsvfs, tx); in zfs_make_xattrdir()
1061 sizeof (xzp->z_id), tx)); in zfs_make_xattrdir()
1063 (void) zfs_log_create(zfsvfs->z_log, tx, TX_MKXATTR, zp, in zfs_make_xattrdir()
1067 dmu_tx_commit(tx); in zfs_make_xattrdir()