AFS: Correctly use 64-bit time for UUID
authorTina Ruchandani <ruchandani.tina@gmail.com>
Fri, 30 Oct 2015 08:51:01 +0000 (01:51 -0700)
committerArnd Bergmann <arnd@arndb.de>
Tue, 26 Apr 2016 16:06:00 +0000 (18:06 +0200)
commit549eb7b22e245064dcdc17380538718492f4ca9c
tree5790a18db945b88f075281b6608c321b7aa1aa7b
parentbf16200689118d19de1b8d2a3c314fc21f5dc7bb
AFS: Correctly use 64-bit time for UUID

UUID calculation uses 'struct timespec' whose seconds will overflow
in year 2038 and beyond for 32-bit systems. This patch removes the
dependency on 'struct timespec' by using ktime_get_real().
While the patch does not fix a 'bug' as such, it is part of a larger
effort to remove instances of 'struct timespec' and other data-structures
suffering from y2038 problem from the kernel.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/afs/main.c
This page took 0.024881 seconds and 5 git commands to generate.