summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-vdo/data-vio.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-03-28 09:41:46 +0100
committerJens Axboe <axboe@kernel.dk>2024-04-01 19:53:37 +0200
commit50bc215030f3ed108d38088627e243366b883201 (patch)
tree33bc4186e4ec2ef24246c6a08d482faaad7912fc /drivers/md/dm-vdo/data-vio.c
parentblk-cgroup: use bio_list_merge_init (diff)
downloadlinux-50bc215030f3ed108d38088627e243366b883201.tar.xz
linux-50bc215030f3ed108d38088627e243366b883201.zip
dm: use bio_list_merge_init
Use bio_list_merge_init instead of open coding bio_list_merge and bio_list_init. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mike Snitzer <snitzer@kernel.org> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://lore.kernel.org/r/20240328084147.2954434-4-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-vdo/data-vio.c')
-rw-r--r--drivers/md/dm-vdo/data-vio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-vdo/data-vio.c b/drivers/md/dm-vdo/data-vio.c
index 94f6f1ccfb7d..ab3ea8337809 100644
--- a/drivers/md/dm-vdo/data-vio.c
+++ b/drivers/md/dm-vdo/data-vio.c
@@ -604,8 +604,7 @@ static void assign_discard_permit(struct limiter *limiter)
static void get_waiters(struct limiter *limiter)
{
- bio_list_merge(&limiter->waiters, &limiter->new_waiters);
- bio_list_init(&limiter->new_waiters);
+ bio_list_merge_init(&limiter->waiters, &limiter->new_waiters);
}
static inline struct data_vio *get_available_data_vio(struct data_vio_pool *pool)