summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-12-22 14:02:19 +0530
committerJens Axboe <axboe@fb.com>2015-12-22 10:19:46 -0700
commit8182503df1baa077d1504cd192753b23530eb03c (patch)
tree238847c85dc3efaaff4228a798915cbb5d3d649e /drivers/md
parent8011e2490907c267e8be02a549246082d537e082 (diff)
downloadop-kernel-dev-8182503df1baa077d1504cd192753b23530eb03c.zip
op-kernel-dev-8182503df1baa077d1504cd192753b23530eb03c.tar.gz
block: sx8.c: Replace timeval with ktime_t
32-bit systems using 'struct timeval' will break in the year 2038, in order to avoid that replace the code with more appropriate types. This patch replaces timeval with 64 bit ktime_t which is y2038 safe. Since st->timestamp is only interested in seconds, directly using time64_t here. Function ktime_get_seconds is used since it uses monotonic instead of real time and thus will not cause overflow. Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud