drbd: use bdev_alignment_offset instead of queue_alignment_offset
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:37 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:58 +0000 (19:49 -0600)
commitc6f23b1a05441a26f765e59dd95e8ba7354f9388
treeda63f9951a96de60922c2c5c5870af9452f78064
parent7a38acce229685968b770d1d9e64e01396b93643
drbd: use bdev_alignment_offset instead of queue_alignment_offset

The bdev version does the right thing for partitions, so use that.

Fixes: 9104d31a759f ("drbd: introduce WRITE_SAME support")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://lore.kernel.org/r/20220415045258.199825-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_main.c