Home
last modified time | relevance | path

Searched hist:db39c16724d019029d7533561754d92bef1b389a (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/fs/affs/
H A Damigaffs.cdiff db39c16724d019029d7533561754d92bef1b389a Thu Nov 12 07:40:41 CST 2015 DengChao <chao.deng@linaro.org> 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>
H A Daffs.hdiff db39c16724d019029d7533561754d92bef1b389a Thu Nov 12 07:40:41 CST 2015 DengChao <chao.deng@linaro.org> 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>
H A Dsuper.cdiff db39c16724d019029d7533561754d92bef1b389a Thu Nov 12 07:40:41 CST 2015 DengChao <chao.deng@linaro.org> 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>