the capacity calculation is obvious buggy.

Signed-off-by: Shaohua Li <s...@fusionio.com>
---
 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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to