Whamcloud - gitweb
- returned back OBD_MD_FID. For many reasons its removal was wrong.
[fs/lustre-release.git] / lustre / mds / lproc_mds.c
index d94d8cd..3912499 100644 (file)
@@ -93,7 +93,7 @@ static int lprocfs_mds_wr_config_update(struct file *file, const char *buffer,
         struct obd_device *obd = data;
         ENTRY;
 
-        RETURN(mds_lov_update_config(obd, 0));
+        RETURN(mds_dt_update_config(obd, 0));
 }
 
 static int lprocfs_rd_last_fid(char *page, char **start, off_t off,
@@ -103,9 +103,9 @@ static int lprocfs_rd_last_fid(char *page, char **start, off_t off,
         struct mds_obd *mds = &obd->u.mds;
         __u64 last_fid;
 
-        down(&mds->mds_last_fid_sem);
+        spin_lock(&mds->mds_last_fid_lock);
         last_fid = mds->mds_last_fid;
-        up(&mds->mds_last_fid_sem);
+        spin_unlock(&mds->mds_last_fid_lock);
 
         *eof = 1;
         return snprintf(page, count, LPD64"\n", last_fid);
@@ -118,7 +118,8 @@ static int lprocfs_rd_group(char *page, char **start, off_t off,
         struct mds_obd *mds = &obd->u.mds;
 
         *eof = 1;
-        return snprintf(page, count, "%lu\n", (unsigned long)mds->mds_num);
+        return snprintf(page, count, "%lu\n",
+                        (unsigned long)mds->mds_num);
 }
 
 struct lprocfs_vars lprocfs_mds_obd_vars[] = {