]> git.baikalelectronics.ru Git - kernel.git/commit
fs:affs:Replace time_t with time64_t
authorDengChao <chao.deng@linaro.org>
Thu, 12 Nov 2015 13:40:41 +0000 (21:40 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 Jan 2016 07:59:19 +0000 (02:59 -0500)
commit276b41c927b487d343c6b64b14008967d904855f
tree9db0304601bce4a0704f721105dc756bcec0d649
parentec80823a242cd54300b052211e8a0845ceb60f59
fs:affs:Replace time_t with time64_t

The affs code uses "time_t" and "get_seconds()". This will cause
problems on 32-bit architectures in 2038 when time_t overflows.
This patch replaces them with "time64_t" and
"ktime_get_real_seconds()". This patch introduces expensive 64-bit
divsion in "secs_to_datestamp()", considering this function is not
called so often, the cost should be acceptable.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: DengChao <chao.deng@linaro.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/affs/affs.h
fs/affs/amigaffs.c
fs/affs/super.c