DM: Fix device mapper topology stacking
authorMartin K. Petersen <martin.petersen@oracle.com>
Mon, 11 Jan 2010 08:21:50 +0000 (03:21 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 11 Jan 2010 13:29:20 +0000 (14:29 +0100)
commitb27d7f16d3c6c27345d4280a739809c1c2c4c0b5
treecb2947bf2c466616dad6a160a9efb47208432d96
parent17be8c245054b9c7786545af3ba3ca4e54cd4ad9
DM: Fix device mapper topology stacking

Make DM use bdev_stack_limits() function so that partition offsets get
taken into account when calculating alignment.  Clarify stacking
warnings.

Also remove obsolete clearing of final alignment_offset and misalignment
flag.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: Alasdair G. Kergon <agk@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/md/dm-table.c