mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 18:12:48 +00:00
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 <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Link: https://lore.kernel.org/r/[email protected] [axboe: fold in 'q' removal as it's now unused] Signed-off-by: Jens Axboe <[email protected]>