Whamcloud - gitweb
LU-9019 osd-ldiskfs: migrate to 64 bit time
[fs/lustre-release.git] / lustre / osd-zfs / osd_index.c
index e069d6b..7d69754 100644 (file)
@@ -567,9 +567,9 @@ osd_consistency_check(const struct lu_env *env, struct osd_device *osd,
        } else if (osd->od_auto_scrub_interval == AS_NEVER) {
                RETURN(0);
        } else {
-               if (cfs_time_before(cfs_time_current_sec(),
-                                   scrub->os_file.sf_time_last_complete +
-                                   osd->od_auto_scrub_interval))
+               if (ktime_get_real_seconds() <
+                   scrub->os_file.sf_time_last_complete +
+                   osd->od_auto_scrub_interval)
                        RETURN(0);
        }