dm table: pass device's data start to blk_stack_limits() in bytes
PATCH 1/1 dm table: pass device's data start to blk_stack_limits() in bytes
The offset passed to blk_stack_limits() must be in bytes not sectors. Fixes false warnings like the following:
device-mapper: table: 254:1: target device sda6 is misaligned
Signed-off-by Mike Snitzer <[email protected]>
Reported-by Frans Pop <[email protected]>
Tested-by Frans Pop <[email protected]>
--
drivers/md/dm-table.c +1 -1
@@ -495,7 +495,7 @@ int dm_set_device_limits(struct dm_targereturn 0 ; } -if (blk_stack_limits (limits, &q->limits, start) <0 ) +if (blk_stack_limits (limits, &q->limits, start <<9 ) <0 )DMWARN ("%s: target device %s is misaligned" ,dm_device_name (ti->table->md),bdevname (bdev, b));