block: fix physical_block_size calculation
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Jun 2010 15:52:52 +0000 (17:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 22 Jun 2010 12:38:01 +0000 (14:38 +0200)
commit1e297c323590d3deae46e566956cc4351e2aa5da
treebeadd56b5142b32bc63002efdcfcee4a2ff82bf0
parentc7126d5b3216e57b4e388e3fd34faa785b8e4bd0
block: fix physical_block_size calculation

Both SCSI and virtio expect the physical block size relative to the
logical block size.  So get the factor first before calculating the
log2.

Reported-by: Mike Cao <bcao@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block_int.h