]> git.baikalelectronics.ru Git - kernel.git/commit
md: use seconds granularity for error logging
authorArnd Bergmann <arnd@arndb.de>
Fri, 17 Jun 2016 15:33:10 +0000 (17:33 +0200)
committerShaohua Li <shli@fb.com>
Tue, 19 Jul 2016 18:00:47 +0000 (11:00 -0700)
commit1813a418f7c50c57be611a959fb3df9113892b91
tree7c4a99c0ef5930b3380aa01bf754066d11b0ab2a
parent46be0e2037ec3ecf45f0a4079a48198ba5cab32c
md: use seconds granularity for error logging

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: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c
drivers/md/md.h
drivers/md/raid10.c