summaryrefslogtreecommitdiffstats
path: root/fs/proc/fd.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-08-02 14:03:22 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-08-02 17:31:41 -0400
commit519ded5a89ec0e46e5b0867ba9f5752239b73898 (patch)
tree59af01944e5b0abfe24e9b8cdf619f7875f7a08a /fs/proc/fd.c
parentef419398b68925f21fd3d8463c7bf6934d2ec926 (diff)
downloadlinux-519ded5a89ec0e46e5b0867ba9f5752239b73898.tar.bz2
procfs: avoid 32-bit time_t in /proc/*/stat
/proc/stat shows (among lots of other things) the current boottime (i.e. number of seconds since boot). While a 32-bit number is sufficient for this particular case, we want to get rid of the 'struct timespec' suffers from a 32-bit overflow in 2038. This changes the code to use a struct timespec64, which is known to be safe in all cases. Link: http://lkml.kernel.org/r/20160617201247.2292101-1-arnd@arndb.de Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/fd.c')
0 files changed, 0 insertions, 0 deletions