Whamcloud - gitweb
Revert "LU-6245 libcfs: remove cfs_fs_time handling"
[fs/lustre-release.git] / lustre / mdd / mdd_internal.h
index f79746b..4f99f02 100644 (file)
@@ -74,10 +74,10 @@ struct mdd_changelog {
        int                     mc_lastuser;
 };
 
-static inline __u64 cl_time(void)
-{
-       struct timespec time = CURRENT_TIME;
+static inline __u64 cl_time(void) {
+       cfs_fs_time_t time;
 
+       cfs_fs_time_current(&time);
        return (((__u64)time.tv_sec) << 30) + time.tv_nsec;
 }