• Deepa Dinamani's avatar
    fs: udf: Replace CURRENT_TIME with current_time() · 88b50ce3
    Deepa Dinamani authored
    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: default avatarDeepa Dinamani <deepa.kernel@gmail.com>
    Reviewed-by: default avatarJan Kara <jack@suse.cz>
    Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    88b50ce3
super.c 66 KB