th->th_dev = NULL;
lu_context_exit(&th->th_ctx);
lu_context_fini(&th->th_ctx);
- thandle_put(&oh->ot_super);
+ OBD_FREE_PTR(oh);
EXIT;
}
/* there won't be any commit, release reserved quota space now,
* if any */
qsd_op_end(env, osd->od_quota_slave, &oh->ot_quota_trans);
- thandle_put(&oh->ot_super);
+ OBD_FREE_PTR(oh);
RETURN(0);
}
th->th_dev = dt;
th->th_result = 0;
th->th_tags = LCT_TX_HANDLE;
- atomic_set(&th->th_refc, 1);
- th->th_alloc_size = sizeof(*oh);
RETURN(th);
}