From: John L. Hammond Date: Fri, 29 Apr 2016 12:00:33 +0000 (-0500) Subject: LU-8035 obd: rename md_getstatus() to md_get_root() X-Git-Tag: 2.8.54~67 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=895527a77d23ea71e030c81a7cc86d71249e380c LU-8035 obd: rename md_getstatus() to md_get_root() Finish the partial renaming of the the OBD MD method md_getstatus() to md_get_root(). Signed-off-by: John L. Hammond Change-Id: Iadd785ce774377d3dba40f64dbddaaf68cfc8087 Reviewed-on: http://review.whamcloud.com/19824 Tested-by: Jenkins Reviewed-by: Andreas Dilger Reviewed-by: Wang Shilong Reviewed-by: James Simmons Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/include/obd.h b/lustre/include/obd.h index 31232e4..331f036 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -1069,8 +1069,7 @@ struct md_ops { #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 *, diff --git a/lustre/include/obd_class.h b/lustre/include/obd_class.h index f66bbeb..f2c1af77 100644 --- a/lustre/include/obd_class.h +++ b/lustre/include/obd_class.h @@ -1272,9 +1272,9 @@ static inline int md_get_root(struct obd_export *exp, const char *fileset, int rc; ENTRY; - 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); RETURN(rc); } diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 0b7a1f0..b112966 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -1498,9 +1498,8 @@ out_free_temp: return rc; } -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; @@ -3331,7 +3330,7 @@ struct obd_ops lmv_obd_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, diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 39077ef..725510c 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -2791,7 +2791,7 @@ static struct obd_ops mdc_obd_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, diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index 3091bf2..650fc05 100644 --- a/lustre/obdclass/lprocfs_status.c +++ b/lustre/obdclass/lprocfs_status.c @@ -1361,7 +1361,7 @@ EXPORT_SYMBOL(lprocfs_counter_init); 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);