]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a285cc443ad9d64cc22774610df27e54262e9ce
treec52298860b2e43cb1c536d097ae958f3651f9335
parent1f9a13663224c0b90de8605d8e976f57648e2610
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