linux/fs/nilfs2
Arnd Bergmann fb04b91bc2 nilfs2: use time64_t internally
The superblock and segment timestamps are used only internally in nilfs2
and can be read out using sysfs.

Since we are using the old 'get_seconds()' interface and store the data
as timestamps, the behavior differs slightly between 64-bit and 32-bit
kernels, the latter will show incorrect timestamps after 2038 in sysfs,
and presumably fail completely in 2106 as comparisons go wrong.

This changes nilfs2 to use time64_t with ktime_get_real_seconds() to
handle timestamps, making the behavior consistent and correct on both
32-bit and 64-bit machines.

The on-disk format already uses 64-bit timestamps, so nothing changes
there.

Link: http://lkml.kernel.org/r/20180122211050.1286441-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-02-06 18:32:45 -08:00
..
Kconfig
Makefile
alloc.c
alloc.h
bmap.c
bmap.h
btnode.c
btnode.h
btree.c
btree.h
cpfile.c
cpfile.h
dat.c
dat.h
dir.c
direct.c
direct.h
export.h
file.c
gcinode.c
ifile.c
ifile.h
inode.c
ioctl.c
mdt.c
mdt.h
namei.c
nilfs.h
page.c
page.h
recovery.c
segbuf.c nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00
segbuf.h nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00
segment.c nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00
segment.h nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00
sufile.c nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00
sufile.h nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00
super.c nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00
sysfs.c nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00
sysfs.h
the_nilfs.c
the_nilfs.h nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00