]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: Fix incorrect reporting of partition alignment
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Jan 2010 06:55:07 +0000 (01:55 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Jan 2010 23:18:07 +0000 (15:18 -0800)
commit1bd24fdff4b0bd7f0a50f330165a82be690a919c
tree785103386aa3646173a10d1b017fe857804fa521
parent8a9c3f5c34a93fd4635aa739810280c4752eaa6e
block: Fix incorrect reporting of partition alignment

commit 81744ee44ab2845c16ffd7d6f762f7b4a49a4750 upstream

queue_sector_alignment_offset returned the wrong value which caused
partitions to report an incorrect alignment_offset. Since offset
calculation is needed several places it has been split into a separate
helper function.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Tested-by: Mike Snitzer <snitzer@redhat.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/blkdev.h