Finish the partial renaming of the the OBD MD method md_getstatus() to
md_get_root().
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Iadd785ce774377d3dba40f64dbddaaf68cfc8087
Reviewed-on: http://review.whamcloud.com/19824
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
#define MD_STATS_LAST_OP m_revalidate_lock
#define MD_STATS_LAST_OP m_revalidate_lock
- int (*m_getstatus)(struct obd_export *, const char *fileset,
- struct lu_fid *);
+ int (*m_get_root)(struct obd_export *, const char *, struct lu_fid *);
int (*m_null_inode)(struct obd_export *, const struct lu_fid *);
int (*m_getattr_name)(struct obd_export *, struct md_op_data *,
int (*m_null_inode)(struct obd_export *, const struct lu_fid *);
int (*m_getattr_name)(struct obd_export *, struct md_op_data *,
- EXP_CHECK_MD_OP(exp, getstatus);
- EXP_MD_COUNTER_INCREMENT(exp, getstatus);
- rc = MDP(exp->exp_obd, getstatus)(exp, fileset, fid);
+ EXP_CHECK_MD_OP(exp, get_root);
+ EXP_MD_COUNTER_INCREMENT(exp, get_root);
+ rc = MDP(exp->exp_obd, get_root)(exp, fileset, fid);
-static int lmv_getstatus(struct obd_export *exp,
- const char *fileset,
- struct lu_fid *fid)
+static int lmv_get_root(struct obd_export *exp, const char *fileset,
+ struct lu_fid *fid)
{
struct obd_device *obd = exp->exp_obd;
struct lmv_obd *lmv = &obd->u.lmv;
{
struct obd_device *obd = exp->exp_obd;
struct lmv_obd *lmv = &obd->u.lmv;
};
struct md_ops lmv_md_ops = {
};
struct md_ops lmv_md_ops = {
- .m_getstatus = lmv_getstatus,
+ .m_get_root = lmv_get_root,
.m_null_inode = lmv_null_inode,
.m_close = lmv_close,
.m_create = lmv_create,
.m_null_inode = lmv_null_inode,
.m_close = lmv_close,
.m_create = lmv_create,
};
static struct md_ops mdc_md_ops = {
};
static struct md_ops mdc_md_ops = {
- .m_getstatus = mdc_get_root,
+ .m_get_root = mdc_get_root,
.m_null_inode = mdc_null_inode,
.m_close = mdc_close,
.m_create = mdc_create,
.m_null_inode = mdc_null_inode,
.m_close = mdc_close,
.m_create = mdc_create,
void lprocfs_init_mps_stats(int num_private_stats, struct lprocfs_stats *stats)
{
void lprocfs_init_mps_stats(int num_private_stats, struct lprocfs_stats *stats)
{
- LPROCFS_MD_OP_INIT(num_private_stats, stats, getstatus);
+ LPROCFS_MD_OP_INIT(num_private_stats, stats, get_root);
LPROCFS_MD_OP_INIT(num_private_stats, stats, null_inode);
LPROCFS_MD_OP_INIT(num_private_stats, stats, close);
LPROCFS_MD_OP_INIT(num_private_stats, stats, create);
LPROCFS_MD_OP_INIT(num_private_stats, stats, null_inode);
LPROCFS_MD_OP_INIT(num_private_stats, stats, close);
LPROCFS_MD_OP_INIT(num_private_stats, stats, create);