diff options
author | 2019-10-31 15:53:13 +0100 | |
---|---|---|
committer | 2019-12-19 17:46:08 -0500 | |
commit | 9cc7680149b238223bbb8bcf3272f6bd47f1fbfb (patch) | |
tree | ef10cbb50010ca6cf0ab07332b95fe88391c07e3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | nfsd: use timespec64 in encode_time_delta (diff) | |
download | wireguard-linux-9cc7680149b238223bbb8bcf3272f6bd47f1fbfb.tar.xz wireguard-linux-9cc7680149b238223bbb8bcf3272f6bd47f1fbfb.zip |
nfsd: make 'boot_time' 64-bit wide
The local boot time variable gets truncated to time_t at the moment,
which can lead to slightly odd behavior on 32-bit architectures.
Use ktime_get_real_seconds() instead of get_seconds() to always
get a 64-bit result, and keep it that way wherever possible.
It still gets truncated in a few places:
- When assigning to cl_clientid.cl_boot, this is already documented
and is only used as a unique identifier.
- In clients_still_reclaiming(), the truncation is to 'unsigned long'
in order to use the 'time_before() helper.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions