block: use bdev_alignment_offset in disk_alignment_offset_show
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:48 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commit640f2a23911b8388989547f89d055afbb910b88e
treec52298860b2e43cb1c536d097ae958f3651f9335
parent64dcc7c2717395b7c83ffb10f040d3be795d03c1
block: use bdev_alignment_offset in disk_alignment_offset_show

This does the same as the open coded variant except for an extra branch,
and allows to remove queue_alignment_offset entirely.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220415045258.199825-18-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
include/linux/blkdev.h