mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Prevent integer overflow after ~164 days of uptime.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
b11b08ed64
commit
e004f04c8b
@ -62,7 +62,7 @@ __gethrtime(void) {
|
||||
#else
|
||||
uint64_t j = get_jiffies_64();
|
||||
|
||||
return (hrtime_t)(j * NSEC_PER_SEC / HZ);
|
||||
return (hrtime_t)(j * (NSEC_PER_SEC / HZ));
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL(__gethrtime);
|
||||
|
Loading…
Reference in New Issue
Block a user