]> Git Repo - linux.git/commit
ocfs2: replace CURRENT_TIME macro
authorDeepa Dinamani <[email protected]>
Tue, 13 Dec 2016 00:41:26 +0000 (16:41 -0800)
committerLinus Torvalds <[email protected]>
Tue, 13 Dec 2016 02:55:06 +0000 (18:55 -0800)
commitc62c38f6b91b87a013bccd3637c2a1850d8e590c
tree5e76cc9fdd96e0db768bf77727b3d8fec4f8168f
parent395627b0718b6d4252c451c766cfc00ec155ddaf
ocfs2: replace CURRENT_TIME macro

CURRENT_TIME is not y2038 safe.

Use y2038 safe ktime_get_real_seconds() here for timestamps.  struct
heartbeat_block's hb_seq and deletetion time are already 64 bits wide
and accommodate times beyond y2038.

Also use y2038 safe ktime_get_real_ts64() for on disk inode timestamps.
These are also wide enough to accommodate time64_t.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Deepa Dinamani <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Joseph Qi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/cluster/heartbeat.c
fs/ocfs2/inode.c
fs/ocfs2/namei.c
This page took 0.054415 seconds and 4 git commands to generate.