block: use bdev_discard_alignment in part_discard_alignment_show
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:51 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commitf0f975a4dde890bfe25ce17bf07a6495453988a4
tree0edec9693385e212c0773127b7caba964ee1e312
parent4e1462ffe8998749884d61f91be251a7a8719677
block: use bdev_discard_alignment in part_discard_alignment_show

Use the bdev based alignment helper instead of open coding it.

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-21-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/core.c