summaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-04-15 07:52:47 +0300
committerJens Axboe <axboe@kernel.dk>2022-04-18 04:49:59 +0300
commit64dcc7c2717395b7c83ffb10f040d3be795d03c1 (patch)
tree0895fe0cbbcc8241b1eac7b943e6759e9e3df5bd /block/genhd.c
parent2aba0d19f4d8c8929b4b3b94a9cfde2aa20e6ee2 (diff)
downloadlinux-64dcc7c2717395b7c83ffb10f040d3be795d03c1.tar.xz
block: use bdev_alignment_offset in part_alignment_offset_show
Replace the open coded offset calculation with the proper helper. This is an ABI change in that the -1 for a misaligned partition is properly propagated, which can be considered a bug fix and matches what is done on the whole device. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20220415045258.199825-17-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions