Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "LU-6245 libcfs: remove cfs_fs_time handling"
[fs/lustre-release.git]
/
lustre
/
mdd
/
mdd_internal.h
diff --git
a/lustre/mdd/mdd_internal.h
b/lustre/mdd/mdd_internal.h
index
f79746b
..
4f99f02
100644
(file)
--- a/
lustre/mdd/mdd_internal.h
+++ b/
lustre/mdd/mdd_internal.h
@@
-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;
}