diff options
author | Christoph Hellwig <hch@lst.de> | 2022-04-18 07:53:14 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-05-04 14:24:40 +0300 |
commit | 0000f2f7205d88e0d97f8b47b2c8a98e86137708 (patch) | |
tree | 0b1daa5d299cc5aa26912ade83b367f51473fad8 /scripts/gdb/linux/utils.py | |
parent | 18292faa89d2bff3bdd33ab9c065f45fb6710e47 (diff) | |
download | linux-0000f2f7205d88e0d97f8b47b2c8a98e86137708.tar.xz |
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>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220418045314.360785-12-hch@lst.de
[axboe: fold in 'q' removal as it's now unused]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions