diff options
author | 2022-04-18 06:53:14 +0200 | |
---|---|---|
committer | 2022-05-04 05:24:40 -0600 | |
commit | 0000f2f7205d88e0d97f8b47b2c8a98e86137708 (patch) | |
tree | 0b1daa5d299cc5aa26912ade83b367f51473fad8 /lib/test_bitmap.c | |
parent | rnbd-srv: use bdev_discard_alignment (diff) | |
download | linux-dev-0000f2f7205d88e0d97f8b47b2c8a98e86137708.tar.xz linux-dev-0000f2f7205d88e0d97f8b47b2c8a98e86137708.zip |
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 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions