jffs2: use 64-bit intermediate timestamps
authorArnd Bergmann <arnd@arndb.de>
Fri, 13 Jul 2018 14:47:16 +0000 (16:47 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 18 Jul 2018 14:43:58 +0000 (16:43 +0200)
commitc4592b9c37889c2850b0edadcff063d5097f1cb9
tree928bc9e3fb77afd7c99e739e5b1a144c6888afde
parent39675caa06e77547cf0692f854dce015e1b5c36b
jffs2: use 64-bit intermediate timestamps

The VFS now uses timespec64 timestamps consistently, but jffs2 still
converts them to 32-bit numbers on the storage medium. As the helper
functions for the conversion (get_seconds() and timespec_to_timespec64())
are now deprecated, let's change them over to the more modern
replacements.

This keeps the traditional interpretation of those values, where
the on-disk 32-bit numbers are taken to be negative numbers, i.e.
dates before 1970, on 32-bit machines, but future numbers past 2038
on 64-bit machines.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
fs/jffs2/dir.c
fs/jffs2/file.c
fs/jffs2/fs.c
fs/jffs2/os-linux.h