lkml.org 
[lkml]   [2015]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [Y2038] [PATCH] fs:affs:Replace time_t with time64_t
Date
On Thursday 12 November 2015 21:40:41 DengChao wrote:
> 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.
>
> Signed-off-by: DengChao <chao.deng@linaro.org>
>

Looks good,

Reviewed-by: Arnd Bergmann <arnd@arndb.de>

Is anyone picking up patches for random unmaintained file systems,
or should we put it into the y2038 tree?

Arnd


\
 
 \ /
  Last update: 2015-11-12 15:01    [W:0.027 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site