]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: writeback rate clamping: make 32 bit safe
authorMichael Lyle <mlyle@lyle.org>
Mon, 16 Oct 2017 17:34:47 +0000 (10:34 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Oct 2017 19:00:10 +0000 (13:00 -0600)
commit1abfd41a85e76f92c68d0cf033135df5c55dd572
tree2d896298abbb01ac5e998d02273aee1544ea8504
parent584e8c059a8bc440c61e2fb9ef4e1d5a4129775a
bcache: writeback rate clamping: make 32 bit safe

Sorry this got through to linux-block, was detected by the kbuilds test
robot.  NSEC_PER_SEC is a long constant; 2.5 * 10^9 doesn't fit in a
signed long constant.

Fixes: 30b809f6842a ("bcache: writeback rate shouldn't artifically clamp")
Reviewed-by: Coly Li <colyli@suse.de>
Signed-off-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/util.c