Whamcloud - gitweb
Branch HEAD
authorhuanghua <huanghua>
Tue, 28 Oct 2008 14:06:30 +0000 (14:06 +0000)
committerhuanghua <huanghua>
Tue, 28 Oct 2008 14:06:30 +0000 (14:06 +0000)
b=17192
i=robert.read
i=adilger

clear the proc stats counter. This value might be used later again.

lustre/obdclass/lprocfs_status.c

index 1cf5bd2..61a2fca 100644 (file)
@@ -1417,6 +1417,7 @@ void lprocfs_free_md_stats(struct obd_device *obd)
 
         if (stats != NULL) {
                 obd->md_stats = NULL;
+                obd->md_cntr_base = 0;
                 lprocfs_free_stats(&stats);
         }
 }