1
0
Fork 0
alistair23-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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
alloc.c
alloc.h
bmap.c
bmap.h
btnode.c
btnode.h
btree.c mm, pagevec: remove cold parameter for pagevecs 2017-11-15 18:21:06 -08:00
btree.h
cpfile.c
cpfile.h
dat.c
dat.h
dir.c
direct.c
direct.h
export.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
file.c
gcinode.c
ifile.c
ifile.h
inode.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2017-07-17 08:45:34 +01:00
ioctl.c
mdt.c VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb) 2017-07-17 08:45:34 +01:00
mdt.h
namei.c nilfs2: use octal for unreadable permission macro 2017-11-17 16:10:03 -08:00
nilfs.h
page.c mm, pagevec: remove cold parameter for pagevecs 2017-11-15 18:21:06 -08:00
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 Rename superblock flags (MS_xyz -> SB_xyz) 2017-11-27 13:05:09 -08:00
the_nilfs.h nilfs2: use time64_t internally 2018-02-06 18:32:45 -08:00