• D
    fs: udf: Replace CURRENT_TIME with current_time() · 88b50ce3
    Deepa Dinamani 提交于
    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: NDeepa Dinamani <deepa.kernel@gmail.com>
    Reviewed-by: NJan Kara <jack@suse.cz>
    Reviewed-by: NArnd Bergmann <arnd@arndb.de>
    Signed-off-by: NJan Kara <jack@suse.cz>
    88b50ce3
super.c 66.0 KB