diff options
author | Christoph Hellwig <[email protected]> | 2022-04-18 06:53:14 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-05-04 05:24:40 -0600 |
commit | 0000f2f7205d88e0d97f8b47b2c8a98e86137708 (patch) | |
tree | 0b1daa5d299cc5aa26912ade83b367f51473fad8 /scripts/gdb/linux/utils.py | |
parent | 18292faa89d2bff3bdd33ab9c065f45fb6710e47 (diff) |
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 <[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]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions