• A
    md: use seconds granularity for error logging · 0e3ef49e
    Arnd Bergmann 提交于
    The md code stores the exact time of the last error in the
    last_read_error variable using a timespec structure. It only
    ever uses the seconds portion of that though, so we can
    use a scalar for it.
    
    There won't be an overflow in 2038 here, because it already
    used monotonic time and 32-bit is enough for that, but I've
    decided to use time64_t for consistency in the conversion.
    Signed-off-by: NArnd Bergmann <arnd@arndb.de>
    Signed-off-by: NShaohua Li <shli@fb.com>
    0e3ef49e
md.h 22.9 KB