void mdd_object_release(struct lu_object *o)
{
+ struct mdd_device *mdd = lu2mdd_dev(o->lo_dev);
+ struct mdd_object *obj = mdd_obj(o);
+
+ mdd_object_put(mdd, obj);
}
int mdd_object_print(struct seq_file *f, const struct lu_object *o)
static int mdd_root_get(struct md_device *m, struct lu_fid *f)
{
+ struct mdd_device *mdd = lu2mdd_dev(&m->md_lu_dev);
+ memcpy(f, &mdd->mdd_rootfid, sizeof(*f));
return 0;
}
MODULE_LICENSE("GPL");
cfs_module(mdd, "0.0.2", mdd_mod_init, mdd_mod_exit);
-
const char *name, struct context *uctxt,
void *handle);
int (*osd_index_delete)(struct lu_object *lu, struct lu_fid *fid,
- const char *name, struct context *uctxt,
- void *handle);
+ const char *name, struct context *uctxt,
+ void *handle);
};
struct osd_device {
struct osd_device_operations *osd_ops;
};
-
int mdd_object_put(struct mdd_device *mdd, struct mdd_object *obj);
void mdd_object_get(struct mdd_device *mdd, struct mdd_object *obj);
#endif