Skip to content

Commit fa1af65

Browse files
Christoph Hellwigaxboe
authored andcommitted
btrfs 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> Acked-by: David Sterba <dsterba@suse.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://lore.kernel.org/r/20240328084147.2954434-5-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 50bc215 commit fa1af65

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/btrfs/raid56.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,11 @@ static void steal_rbio(struct btrfs_raid_bio *src, struct btrfs_raid_bio *dest)
331331
static void merge_rbio(struct btrfs_raid_bio *dest,
332332
struct btrfs_raid_bio *victim)
333333
{
334-
bio_list_merge(&dest->bio_list, &victim->bio_list);
334+
bio_list_merge_init(&dest->bio_list, &victim->bio_list);
335335
dest->bio_list_bytes += victim->bio_list_bytes;
336336
/* Also inherit the bitmaps from @victim. */
337337
bitmap_or(&dest->dbitmap, &victim->dbitmap, &dest->dbitmap,
338338
dest->stripe_nsectors);
339-
bio_list_init(&victim->bio_list);
340339
}
341340

342341
/*

0 commit comments

Comments
 (0)