]> git.baikalelectronics.ru Git - kernel.git/commit
s390: hypfs: use ktime_get_seconds() instead of get_seconds()
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Jun 2018 10:05:00 +0000 (12:05 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 25 Jun 2018 08:14:41 +0000 (10:14 +0200)
commita9240ee1218846bc447c94a587f0d3f8c12e7e5d
tree53ea594189b700a02316f1db3904a4a2eab26ab4
parentfbfad44d954246267e7dcdd39ed4710f939df300
s390: hypfs: use ktime_get_seconds() instead of get_seconds()

time_t and get_seconds() are deprecated because they will overflow on
32-bit architectures in the future. This is not a problem on 64-bit s390,
but we should use proper interfaces anyway.

Besides moving to the time64_t based interface, the CLOCK_MONOTONIC
based ktime_get_seconds() is preferred for kernel internal timekeeping
because it does not behave in unexpected ways during leap second changes
or settimeofday() calls.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/hypfs/inode.c