summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-08-22 07:01:13 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-22 19:52:51 +0200
commit3e811f053aec66e8a6d2a0ee3d031e7c988e3d15 (patch)
tree222e4403c041f7a4c70360471ca9d4cf4a3e13ff /init
parentadfs: use timespec64 for time conversion (diff)
downloadlinux-3e811f053aec66e8a6d2a0ee3d031e7c988e3d15.tar.xz
linux-3e811f053aec66e8a6d2a0ee3d031e7c988e3d15.zip
fs/sysv/inode.c: use ktime_get_real_seconds() for superblock stamp
get_seconds() is deprecated in favor of ktime_get_real_seconds(), which returns a 64-bit timestamp. In the SYSV file system, the superblock timestamp is only 32 bits wide, and it is used to check whether a file system is clean, so the best solution seems to be to force a wraparound and explicitly convert it to an unsigned 32-bit value. This is independent of the inode timestamps that are also 32-bit wide on disk and that come from current_time(). Link: http://lkml.kernel.org/r/20180713145236.3152513-1-arnd@arndb.de Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Christoph Hellwig <hch@infradead.org> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions