int (*dtc_txn_stop)(const struct lu_context *ctx,
struct dt_device *dev,
struct thandle *txn, void *cookie);
- int (*dtc_txn_commit)(const struct lu_context *ctx,
- struct dt_device *dev,
+ int (*dtc_txn_commit)(struct dt_device *dev,
struct thandle *txn, void *cookie);
void *dtc_cookie;
struct list_head dtc_linkage;
struct dt_device *dev, struct txn_param *param);
int dt_txn_hook_stop(const struct lu_context *ctx,
struct dt_device *dev, struct thandle *txn);
-int dt_txn_hook_commit(const struct lu_context *ctx,
- struct dt_device *dev, struct thandle *txn);
+int dt_txn_hook_commit(struct dt_device *dev, struct thandle *txn);
int dt_try_as_dir(const struct lu_context *ctx, struct dt_object *obj);
struct dt_object *dt_store_open(const struct lu_context *ctx,
}
/* commit callback, need to update last_commited value */
-static int mdt_txn_commit_cb(const struct lu_context *ctx,
- struct dt_device *dev,
+static int mdt_txn_commit_cb(struct dt_device *dev,
struct thandle *txn, void *cookie)
{
struct mdt_device *mdt = cookie;
}
EXPORT_SYMBOL(dt_txn_hook_stop);
-int dt_txn_hook_commit(const struct lu_context *ctx,
- struct dt_device *dev, struct thandle *txn)
+int dt_txn_hook_commit(struct dt_device *dev, struct thandle *txn)
{
int result;
struct dt_txn_callback *cb;
list_for_each_entry(cb, &dev->dd_txn_callbacks, dtc_linkage) {
if (cb->dtc_txn_commit == NULL)
continue;
- result = cb->dtc_txn_commit(ctx, dev, txn, cb->dtc_cookie);
+ result = cb->dtc_txn_commit(dev, txn, cb->dtc_cookie);
if (result < 0)
break;
}
struct osd_thandle *oh = container_of0(jcb, struct osd_thandle, ot_jcb);
struct thandle *th = &oh->ot_super;
- /* there is no thread context available */
- dt_txn_hook_commit(&th->th_ctx, th->th_dev, th);
+ dt_txn_hook_commit(th->th_dev, th);
if (th->th_dev != NULL) {
lu_device_put(&th->th_dev->dd_lu_dev);
modprobe lov
modprobe ptlrpc
modprobe obdecho
-modprobe llite
+modprobe lustre
modprobe mgc
modprobe ldiskfs
modprobe quotafmt_test