]> www.infradead.org Git - users/hch/block.git/commit
xen-blkback: use bdev_discard_alignment block-discard-offset-fixes
authorChristoph Hellwig <hch@lst.de>
Sat, 9 Apr 2022 04:57:48 +0000 (06:57 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 06:50:04 +0000 (08:50 +0200)
commit8336037b8cabc8f8f35c16ff76b9549a31c248b0
tree1b54164746ded3241d9eecfbe69de072b26d183e
parent82dc5cfabdc96e78f5bbde818759d0ba7a7bdc5c
xen-blkback: use bdev_discard_alignment

Use bdev_discard_alignment to calculate the correct discard alignment
offset even for partitions instead of just looking at the queue limit.

Also switch to use bdev_discard_granularity to get rid of the last direct
queue reference in xen_blkbk_discard.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/block/xen-blkback/xenbus.c