]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
fs: f2fs: use ktime_get_real_seconds for sit_info times
authorDeepa Dinamani <deepa.kernel@gmail.com>
Mon, 8 May 2017 22:59:10 +0000 (15:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 May 2017 00:15:15 +0000 (17:15 -0700)
commit48fbfe50f1d5fef51bac98d105d2a28df42a1205
tree9717ff08a30f206b190e197995ec889dbcd06cfa
parent063246641d4a9e9de84a2466fbad50112faf88dc
fs: f2fs: use ktime_get_real_seconds for sit_info times

CURRENT_TIME_SEC is not y2038 safe.

Replace use of CURRENT_TIME_SEC with ktime_get_real_seconds in segment
timestamps used by GC algorithm including the segment mtime timestamps.

Link: http://lkml.kernel.org/r/1491613030-11599-2-git-send-email-deepa.kernel@gmail.com
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/f2fs/segment.c
fs/f2fs/segment.h