*/
RETURN(-EIO);
- rc = -dmu_tx_assign(oh->ot_tx, TXG_WAIT);
+ rc = -dmu_tx_assign(oh->ot_tx, DMU_TX_WAIT);
if (unlikely(rc != 0)) {
/* dmu will call commit callback with error code during abort */
if (!lu_device_is_md(&d->dd_lu_dev) && rc == -ENOSPC)
dmu_tx_hold_free(tx, oid, 0, DMU_OBJECT_END);
osd_tx_hold_zap(tx, osd->od_unlinked->dn_object, osd->od_unlinked,
FALSE, NULL);
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (rc != 0) {
CWARN("%s: Cannot assign tx for %llu: rc = %d\n",
osd->od_svname, oid, rc);
RETURN(-ENOMEM);
dmu_tx_hold_zap(tx, zap, TRUE, NULL);
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (!rc)
rc = -zap_update(dev->od_os, zap, key, 8, sizeof(*zde) / 8,
(const void *)zde, tx);
dmu_tx_hold_sa_create(tx, osd_find_dnsize(osd, OSD_BASE_EA_IN_BONUS));
dmu_tx_hold_zap(tx, zap, FALSE, NULL);
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (rc) {
dmu_tx_abort(tx);
GOTO(out, rc);
#undef kmem_cache_free
#endif
+/*
+ * zfs-2.3.99-237-gf69631992
+ * dmu_tx: rename dmu_tx_assign() flags from TXG_* to DMU_TX_*
+ */
+#ifndef DMU_TX_WAIT
+#define DMU_TX_WAIT TXG_WAIT
+#endif
+
#define ZFS_VERSION_CODE \
OBD_OCD_VERSION(ZFS_MAJOR, ZFS_MINOR, ZFS_PATCH, ZFS_FIX)
}
dmu_tx_hold_bonus(tx, dn->dn_object);
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (rc) {
dmu_tx_abort(tx);
CERROR("%s: fail to assign tx to set blksize for "DFID": rc = %d\n",
dmu_tx_hold_bonus(tx, parent);
dmu_tx_hold_zap(tx, parent, TRUE, name);
dmu_tx_hold_sa_create(tx, ZFS_SA_BASE_ATTR_SIZE);
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (rc) {
dmu_tx_abort(tx);
GOTO(out, rc);
dmu_tx_mark_netfree(tx);
dmu_tx_hold_free(tx, oid, 0, DMU_OBJECT_END);
osd_tx_hold_zap(tx, oid, rootdn, FALSE, NULL);
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (rc) {
dmu_tx_abort(tx);
GOTO(out, rc);
sizeof(info->oti_str), &dn);
osd_tx_hold_zap(tx, zapid, dn,
ops == DTO_INDEX_INSERT ? TRUE : FALSE, NULL);
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (rc) {
dmu_tx_abort(tx);
GOTO(log, rc);
}
dmu_tx_hold_zap(tx, dir, FALSE, NULL);
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (rc)
GOTO(abort, rc);
dmu_tx_hold_sa_create(tx, osd_find_dnsize(dev, OSD_BASE_EA_IN_BONUS));
dmu_tx_hold_zap(tx, dir, FALSE, NULL);
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (rc)
GOTO(abort, rc);
if (lastid < lastid_known)
dmu_tx_hold_write_by_dnode(tx, dn, 0, sizeof(lastid));
- rc = -dmu_tx_assign(tx, TXG_WAIT);
+ rc = -dmu_tx_assign(tx, DMU_TX_WAIT);
if (rc)
GOTO(abort, rc);