block: Fix topology stacking for data and discard alignment
authorMartin K. Petersen <martin.petersen@oracle.com>
Mon, 21 Dec 2009 14:55:51 +0000 (15:55 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 21 Dec 2009 14:55:51 +0000 (15:55 +0100)
The stacking code incorrectly scaled up the data offset in some cases
causing misaligned devices to report alignment.  Rewrite the stacking
algorithm to remedy this and apply the same alignment principles to the
discard handling.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

No differences found