diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2015-09-27 23:45:17 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 05:03:36 +0300 |
| commit | 8f83409cf2382c968f96877368cd5b542b92af1d (patch) | |
| tree | c6b5e838cf886657dde8a80b2b3b1e4eedcb0422 /include/linux/securebits.h | |
| parent | 1f8c37a4e29bb4794950228d2d9571029f277d7b (diff) | |
| download | linux-8f83409cf2382c968f96877368cd5b542b92af1d.tar.xz | |
staging/lustre: use 64-bit time for pl_recalc
The ldlm pool calculates elapsed time by comparing the previous and
current get_seconds() values, which is unsafe on 32-bit machines
after 2038.
This changes the code to use time64_t and ktime_get_real_seconds(),
keeping the 'real' instead of 'monotonic' time because of the
debug prints.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/securebits.h')
0 files changed, 0 insertions, 0 deletions
