]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit53041ecfcd4d68e7efa3fab0baf202633850fbd5
tree0edec9693385e212c0773127b7caba964ee1e312
parent01bf5e0c050658d7dc4131ff2cee18a7099093c4
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