summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-06-17 16:58:26 +0200
committerJens Axboe <axboe@fb.com>2016-06-17 23:39:58 +0200
commit59a37f8baeb2c9d97f316584c90892d18bf846d4 (patch)
treebfca0df952a0c306141d341f1d1a6bfc8923baee /block
parentblock/blk-cgroup.c: Declare local symbols static (diff)
downloadlinux-59a37f8baeb2c9d97f316584c90892d18bf846d4.tar.xz
linux-59a37f8baeb2c9d97f316584c90892d18bf846d4.zip
blktrace: avoid using timespec
The blktrace code stores the current time in a 32-bit word in its user interface. This is a bad idea because 32-bit seconds overflow at some point. We probably have until 2106 before this one overflows, as it seems to use an 'unsigned' variable, but we should confirm that user space treats it the same way. Aside from this, we want to stop using 'struct timespec' here, so I'm adding a comment about the overflow and change the code to use timespec64 instead to make the loss of range more obvious. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions