]> git.baikalelectronics.ru Git - kernel.git/commit
afs: avoid deprecated get_seconds()
authorArnd Bergmann <arnd@arndb.de>
Sat, 13 Apr 2019 07:37:36 +0000 (08:37 +0100)
committerDavid Howells <dhowells@redhat.com>
Sat, 13 Apr 2019 07:37:36 +0000 (08:37 +0100)
commit6094cb3b4771ce68b8ff71d28f955867f6eea37e
treec2d8878bb368cc92a67857ba2ab14a11429a21de
parent3dbd19f3ed3863e6927fa24f98ba68e71ab6030a
afs: avoid deprecated get_seconds()

get_seconds() has a limited range on 32-bit architectures and is
deprecated because of that. While AFS uses the same limits for
its inode timestamps on the wire protocol, let's just use the
simpler current_time() as we do for other file systems.

This will still zero out the 'tv_nsec' field of the timestamps
internally.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/inode.c