Whamcloud - gitweb
LU-1301 mgs: env and mgs_device to pass around
[fs/lustre-release.git] / lustre / include / obd.h
index 57a0e2a..bc1883d 100644 (file)
@@ -552,7 +552,7 @@ struct client_obd {
 
 #define CL_NOT_QUOTACHECKED 1   /* client->cl_qchk_stat init value */
 
-struct mgs_obd {
+struct mgs_device {
         struct obd_device_target         mgs_obt;
         struct ptlrpc_service           *mgs_service;
         struct vfsmount                 *mgs_vfsmnt;
@@ -562,6 +562,7 @@ struct mgs_obd {
         cfs_mutex_t                      mgs_mutex;
         cfs_proc_dir_entry_t            *mgs_proc_live;
         cfs_time_t                       mgs_start_time;
+       struct obd_device               *mgs_obd;
 };
 
 struct mds_obd {
@@ -1154,7 +1155,7 @@ struct obd_device {
                 struct echo_obd echo;
                 struct lov_obd lov;
                 struct lmv_obd lmv;
-                struct mgs_obd mgs;
+               struct mgs_device mgs;
         } u;
         /* Fields used by LProcFS */
         unsigned int           obd_cntr_base;