summaryrefslogtreecommitdiff
path: root/fs/nilfs2/segbuf.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-08-22 07:59:05 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-22 20:52:49 +0300
commit21a1a52dbdd5c9dc17c546bbdb95038f53515d2c (patch)
tree523229f8ff9767c3e44b68c160a73f70a7f246d5 /fs/nilfs2/segbuf.h
parentcbf6898fd69455092c43cd573b38d42c86ddb1e0 (diff)
downloadlinux-21a1a52dbdd5c9dc17c546bbdb95038f53515d2c.tar.xz
nilfs2: use 64-bit superblock timstamps
The mount time field in the superblock uses a 64-bit timestamp, but calling get_seconds() may truncate the current time to 32 bits. This changes it to ktime_get_real_seconds() to avoid the potential overflow. Link: http://lkml.kernel.org/r/20180620075041.4154396-1-arnd@arndb.de Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Cc: David Howells <dhowells@redhat.com> Cc: Jeff Layton <jlayton@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/segbuf.h')
0 files changed, 0 insertions, 0 deletions