Whamcloud - gitweb
Branch: HEAD
authorwangdi <wangdi>
Thu, 1 Sep 2005 07:58:17 +0000 (07:58 +0000)
committerwangdi <wangdi>
Thu, 1 Sep 2005 07:58:17 +0000 (07:58 +0000)
lproc for update config should return count, not 0

lustre/llite/lproc_llite.c
lustre/mds/lproc_mds.c

index 6e630a6..5f429c5 100644 (file)
@@ -227,7 +227,8 @@ static int ll_wr_config_update(struct file *file, const char *buffer,
         ENTRY;
 
         CWARN("Starting a LOV/OST update !\n");
-        RETURN(ll_process_config_update(sbi, 0));
+        ll_process_config_update(sbi, 0);
+        RETURN(count);
 }
 
 static int ll_rd_max_read_ahead_mb(char *page, char **start, off_t off,
index 1386670..4d8f8e1 100644 (file)
@@ -93,7 +93,8 @@ static int lprocfs_mds_wr_config_update(struct file *file, const char *buffer,
         struct obd_device *obd = data;
         ENTRY;
 
-        RETURN(mds_dt_update_config(obd, 0));
+        mds_dt_update_config(obd, 0);
+        RETURN(count);
 }
 
 static int lprocfs_rd_filesopen(char *page, char **start, off_t off,