Whamcloud - gitweb
LU-8035 obd: rename md_getstatus() to md_get_root() 24/19824/3
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 29 Apr 2016 12:00:33 +0000 (07:00 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 May 2016 16:37:26 +0000 (16:37 +0000)
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>
lustre/include/obd.h
lustre/include/obd_class.h
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_request.c
lustre/obdclass/lprocfs_status.c

index 31232e4..331f036 100644 (file)
@@ -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 *,
index f66bbeb..f2c1af7 100644 (file)
@@ -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);
 }
index 0b7a1f0..b112966 100644 (file)
@@ -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,
index 39077ef..725510c 100644 (file)
@@ -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,
index 3091bf2..650fc05 100644 (file)
@@ -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);