fs: f2fs: use ktime_get_real_seconds for sit_info times
authorDeepa Dinamani <[email protected]>
Mon, 8 May 2017 22:59:10 +0000 (15:59 -0700)
committerLinus Torvalds <[email protected]>
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/[email protected]
Signed-off-by: Deepa Dinamani <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Cc: Jaegeuk Kim <[email protected]>
Cc: Chao Yu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/f2fs/segment.c
fs/f2fs/segment.h