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
LU-4423 libcfs: use 64-bit times for cfs_srand seed
[fs/lustre-release.git]
/
lustre
/
llite
/
super25.c
diff --git
a/lustre/llite/super25.c
b/lustre/llite/super25.c
index
c2ebb76
..
3b9f748
100644
(file)
--- a/
lustre/llite/super25.c
+++ b/
lustre/llite/super25.c
@@
-102,7
+102,7
@@
static int __init lustre_init(void)
{
struct proc_dir_entry *entry;
lnet_process_id_t lnet_id;
- struct time
val tv
;
+ struct time
spec64 ts
;
int i, rc, seed[2];
CLASSERT(sizeof(LUSTRE_VOLATILE_HDR) == LUSTRE_VOLATILE_HDR_LEN + 1);
@@
-147,8
+147,8
@@
static int __init lustre_init(void)
seed[0] ^= LNET_NIDADDR(lnet_id.nid);
}
-
do_gettimeofday(&tv
);
- cfs_srand(t
v.tv_sec ^ seed[0], tv.tv_u
sec ^ seed[1]);
+
ktime_get_ts64(&ts
);
+ cfs_srand(t
s.tv_sec ^ seed[0], ts.tv_n
sec ^ seed[1]);
rc = vvp_global_init();
if (rc != 0)