Whamcloud - gitweb
b=20065 Add 1S statfs caching and cleanup CFS_HZ usage.
[fs/lustre-release.git] / lustre / lmv / lmv_obd.c
index 031458b..e0aa6a8 100644 (file)
@@ -754,7 +754,8 @@ static int lmv_iocontrol(unsigned int cmd, struct obd_export *exp,
                         RETURN(-EFAULT);
 
                 rc = obd_statfs(mdc_obd, &stat_buf,
-                                cfs_time_current_64() - CFS_HZ, 0);
+                                cfs_time_shift_64(-OBD_STATFS_CACHE_SECONDS),
+                                0);
                 if (rc)
                         RETURN(rc);
                 if (cfs_copy_to_user(data->ioc_pbuf1, &stat_buf,