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)
commit6075e4ae6e729778ac687a9ffb0c0d5223a0a19e
tree53ea594189b700a02316f1db3904a4a2eab26ab4
parent89b5202e81df9f0f0f0a11cf8c78bc8bfdc52a21
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