return ergo(d != NULL && d->ld_ops != NULL, d->ld_ops == &cmm_lu_ops);
}
-int cmm_get_root(const struct lu_context *ctx, struct md_device *md,
+int cmm_root_get(const struct lu_context *ctx, struct md_device *md,
struct lu_fid *fid)
{
struct cmm_device *cmm_dev = md2cmm_dev(md);
/* valid only on master MDS */
if (cmm_dev->cmm_local_num == 0)
- return cmm_child_ops(cmm_dev)->mdo_get_root(ctx,
+ return cmm_child_ops(cmm_dev)->mdo_root_get(ctx,
cmm_dev->cmm_child, fid);
else
return -EINVAL;
RETURN (rc);
}
-static int cmm_get_maxsize(const struct lu_context *ctxt, struct md_device *md,
+static int cmm_maxsize_get(const struct lu_context *ctxt, struct md_device *md,
int *md_size, int *cookie_size)
{
struct cmm_device *cmm_dev = md2cmm_dev(md);
int rc;
ENTRY;
- rc = cmm_child_ops(cmm_dev)->mdo_get_maxsize(ctxt,
+ rc = cmm_child_ops(cmm_dev)->mdo_maxsize_get(ctxt,
cmm_dev->cmm_child, md_size, cookie_size);
RETURN(rc);
}
static struct md_device_operations cmm_md_ops = {
.mdo_statfs = cmm_statfs,
- .mdo_get_root = cmm_get_root,
- .mdo_get_maxsize = cmm_get_maxsize,
+ .mdo_root_get = cmm_root_get,
+ .mdo_maxsize_get = cmm_maxsize_get,
};
extern struct lu_device_type mdc_device_type;
const struct lu_object_header *hdr,
struct lu_device *);
-int cmm_get_root(const struct lu_context *ctx, struct md_device *md,
+int cmm_root_get(const struct lu_context *ctx, struct md_device *md,
struct lu_fid *fid);
#ifdef HAVE_SPLIT_SUPPORT
GOTO(cleanup, rc = CMM_NO_SPLIT_EXPECTED);
OBD_ALLOC_PTR(fid);
- rc = cmm_get_root(ctx, &cmm->cmm_md_dev, fid);
+ rc = cmm_root_get(ctx, &cmm->cmm_md_dev, fid);
if (rc)
GOTO(cleanup, rc);
/*
* Return fid of root index object.
*/
- int (*dt_get_root)(const struct lu_context *ctx,
+ int (*dt_root_get)(const struct lu_context *ctx,
struct dt_device *dev, struct lu_fid *f);
/*
* Return device configuration data.
*/
- void (*dt_get_conf)(const struct lu_context *ctx,
+ void (*dt_conf_get)(const struct lu_context *ctx,
const struct dt_device *dev,
struct dt_device_param *param);
/*
struct md_device_operations {
/* meta-data device related handlers. */
- int (*mdo_get_root)(const struct lu_context *ctx,
+ int (*mdo_root_get)(const struct lu_context *ctx,
struct md_device *m, struct lu_fid *f);
- int (*mdo_get_maxsize)(const struct lu_context *ctx,
+ int (*mdo_maxsize_get)(const struct lu_context *ctx,
struct md_device *m, int *md_size,
int *cookie_size);
int (*mdo_statfs)(const struct lu_context *ctx,
rc = next->ld_ops->ldo_process_config(ctxt, next, cfg);
if (rc)
GOTO(out, rc);
- dt->dd_ops->dt_get_conf(ctxt, dt, &m->mdd_dt_conf);
+ dt->dd_ops->dt_conf_get(ctxt, dt, &m->mdd_dt_conf);
rc = mdd_mount(ctxt, m);
if (rc)
RETURN(rc);
}
-static int mdd_get_root(const struct lu_context *ctx,
+static int mdd_root_get(const struct lu_context *ctx,
struct md_device *m, struct lu_fid *f)
{
struct mdd_device *mdd = lu2mdd_dev(&m->md_lu_dev);
RETURN(rc);
}
-static int mdd_get_maxsize(const struct lu_context *ctx,
+static int mdd_maxsize_get(const struct lu_context *ctx,
struct md_device *m, int *md_size,
int *cookie_size)
{
struct md_device_operations mdd_ops = {
.mdo_statfs = mdd_statfs,
- .mdo_get_root = mdd_get_root,
- .mdo_get_maxsize = mdd_get_maxsize,
+ .mdo_root_get = mdd_root_get,
+ .mdo_maxsize_get = mdd_maxsize_get,
};
static struct md_dir_operations mdd_dir_ops = {
rc = -ENOMEM;
else {
body = req_capsule_server_get(&info->mti_pill, &RMF_MDT_BODY);
- rc = next->md_ops->mdo_get_root(info->mti_ctxt,
+ rc = next->md_ops->mdo_root_get(info->mti_ctxt,
next, &body->fid1);
if (rc == 0)
body->valid |= OBD_MD_FLID;
switch (ev) {
case MD_LOV_SYNC:
- rc = next->md_ops->mdo_get_maxsize(ctx, next,
+ rc = next->md_ops->mdo_maxsize_get(ctx, next,
&m->mdt_max_mdsize,
&m->mdt_max_cookiesize);
CDEBUG(D_INFO, "get max mdsize %d max cookiesize %d\n",
struct dt_object *root;
struct dt_object *child;
- result = dt->dd_ops->dt_get_root(ctx, dt, fid);
+ result = dt->dd_ops->dt_root_get(ctx, dt, fid);
if (result == 0) {
root = dt_locate(ctx, dt, fid);
if (!IS_ERR(root)) {
struct lu_context od_ctx_for_commit;
};
-static int osd_get_root (const struct lu_context *ctxt,
+static int osd_root_get (const struct lu_context *ctxt,
struct dt_device *dev, struct lu_fid *f);
static int osd_statfs (const struct lu_context *ctxt,
struct dt_device *dev, struct kstatfs *sfs);
struct thandle *th);
static int osd_it_key_size (const struct lu_context *ctx,
const struct dt_it *di);
-static void osd_get_conf (const struct lu_context *ctx,
+static void osd_conf_get (const struct lu_context *ctx,
const struct dt_device *dev,
struct dt_device_param *param);
static int osd_read_locked (const struct lu_context *ctx,
set_fs(*seg);
}
-static int osd_get_root(const struct lu_context *ctx,
+static int osd_root_get(const struct lu_context *ctx,
struct dt_device *dev, struct lu_fid *f)
{
struct inode *inode;
RETURN (result);
}
-static void osd_get_conf(const struct lu_context *ctx,
+static void osd_conf_get(const struct lu_context *ctx,
const struct dt_device *dev,
struct dt_device_param *param)
{
static struct dt_device_operations osd_dt_ops = {
- .dt_get_root = osd_get_root,
+ .dt_root_get = osd_root_get,
.dt_statfs = osd_statfs,
.dt_trans_start = osd_trans_start,
.dt_trans_stop = osd_trans_stop,
- .dt_get_conf = osd_get_conf,
+ .dt_conf_get = osd_conf_get,
.dt_sync = osd_sync,
.dt_ro = osd_ro
};