diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2017-01-03 06:20:55 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-01-03 12:51:26 +0300 |
commit | 88b50ce3ab5af60c85905784c938a35c967addf4 (patch) | |
tree | b8b09a5750427249cf2bfa095eafb7045f8347fa /net | |
parent | 0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff) | |
download | linux-88b50ce3ab5af60c85905784c938a35c967addf4.tar.xz |
fs: udf: Replace CURRENT_TIME with current_time()
CURRENT_TIME is not y2038 safe.
CURRENT_TIME macro is also not appropriate for filesystems
as it doesn't use the right granularity for filesystem
timestamps.
Logical Volume Integrity format is described to have the
same timestamp format for "Recording Date and time" as
the other [a,c,m]timestamps.
The function udf_time_to_disk_format() does this conversion.
Hence the timestamp is passed directly to the function and
not truncated. This is as per Arnd's suggestion on the
thread.
This is also in preparation for the patch that transitions
vfs timestamps to use 64 bit time and hence make them
y2038 safe. As part of the effort current_time() will be
extended to do range checks.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions