From: Deepa Dinamani Date: Tue, 1 Aug 2017 18:53:08 +0000 (-0400) Subject: LU-9558 kernel: replace CURRENT_TIME macro X-Git-Tag: 2.10.52~26 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=213db47f6497c0ea49ffef19de0d4673c932eefd;hp=213db47f6497c0ea49ffef19de0d4673c932eefd LU-9558 kernel: replace CURRENT_TIME macro CURRENT_TIME macro is not y2038 safe on 32 bit systems. The patch replaces all the uses of CURRENT_TIME by current_time() for filesystem times, and ktime_get_* functions for others. struct timespec is also not y2038 safe. Retain timespec for timestamp representation here as lustre uses it internally everywhere. These references will be changed to use struct timespec64 in a separate patch. This is also in preparation for the patch that transitions vfs timestamps to use 64 bit time and hence make them y2038 safe. current_time() is also planned to be transitioned to y2038 safe behavior along with this change. CURRENT_TIME macro will be deleted before merging the aforementioned change. Linux-commit: 47f38c539e9a42344ff5a664942075bd4df93876 Change-Id: Iec67df8f48066801c227aba2bc9221d444dada65 Link: http://lkml.kernel.org/r/1491613030-11599-10-git-send-email-deepa.kernel@gmail.com Signed-off-by: Deepa Dinamani Reviewed-on: https://review.whamcloud.com/28305 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin ---