Files
linux/drivers
Matias Bjørling 5fdb7e1b97 null_blk: fix wrong capacity when bs is not 512 bytes
set_capacity() sets device's capacity using 512 bytes sectors.
null_blk calculates the number of sectors by size / bs, which
set_capacity is called with. This led to null_blk exposing the
wrong number of sectors when bs is not 512 bytes.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-09-02 16:49:42 -06:00
..
2015-08-09 16:28:09 -07:00
2015-08-07 15:02:59 +02:00
2015-08-15 22:10:26 -04:00
2015-08-07 13:58:05 +02:00
2015-08-09 16:28:09 -07:00
2015-07-24 15:14:04 -06:00
2015-08-09 16:28:09 -07:00