the capacity calculation is obvious buggy.
Signed-off-by: Shaohua Li <[email protected]>
---
drivers/block/null_blk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: master/drivers/block/null_blk.c
===================================================================
--- master.orig/drivers/block/null_blk.c 2013-10-11 12:08:49.625163094 +0800
+++ master/drivers/block/null_blk.c 2013-10-11 12:08:49.625163094 +0800
@@ -555,7 +555,7 @@ err:
blk_queue_physical_block_size(nullb->q, bs);
size = gb * 1024 * 1024 * 1024ULL;
- size = sector_div(size, bs);
+ sector_div(size, bs);
set_capacity(disk, size);
disk->flags |= GENHD_FL_EXT_DEVT;
On 10/10/2013 10:14 PM, Shaohua Li wrote:
> the capacity calculation is obvious buggy.
Thanks, applied.
--
Jens Axboe