@@ -572,7 +572,7 @@ static void scrub_fixup(struct scrub_bio *sbio, int ix)
572
572
struct scrub_dev * sdev = sbio -> sdev ;
573
573
struct btrfs_fs_info * fs_info = sdev -> dev -> dev_root -> fs_info ;
574
574
struct btrfs_mapping_tree * map_tree = & fs_info -> mapping_tree ;
575
- struct btrfs_multi_bio * multi = NULL ;
575
+ struct btrfs_bio * bbio = NULL ;
576
576
struct scrub_fixup_nodatasum * fixup ;
577
577
u64 logical = sbio -> logical + ix * PAGE_SIZE ;
578
578
u64 length ;
@@ -610,28 +610,28 @@ static void scrub_fixup(struct scrub_bio *sbio, int ix)
610
610
611
611
length = PAGE_SIZE ;
612
612
ret = btrfs_map_block (map_tree , REQ_WRITE , logical , & length ,
613
- & multi , 0 );
614
- if (ret || !multi || length < PAGE_SIZE ) {
613
+ & bbio , 0 );
614
+ if (ret || !bbio || length < PAGE_SIZE ) {
615
615
printk (KERN_ERR
616
616
"scrub_fixup: btrfs_map_block failed us for %llu\n" ,
617
617
(unsigned long long )logical );
618
618
WARN_ON (1 );
619
619
return ;
620
620
}
621
621
622
- if (multi -> num_stripes == 1 )
622
+ if (bbio -> num_stripes == 1 )
623
623
/* there aren't any replicas */
624
624
goto uncorrectable ;
625
625
626
626
/*
627
627
* first find a good copy
628
628
*/
629
- for (i = 0 ; i < multi -> num_stripes ; ++ i ) {
629
+ for (i = 0 ; i < bbio -> num_stripes ; ++ i ) {
630
630
if (i + 1 == sbio -> spag [ix ].mirror_num )
631
631
continue ;
632
632
633
- if (scrub_fixup_io (READ , multi -> stripes [i ].dev -> bdev ,
634
- multi -> stripes [i ].physical >> 9 ,
633
+ if (scrub_fixup_io (READ , bbio -> stripes [i ].dev -> bdev ,
634
+ bbio -> stripes [i ].physical >> 9 ,
635
635
sbio -> bio -> bi_io_vec [ix ].bv_page )) {
636
636
/* I/O-error, this is not a good copy */
637
637
continue ;
@@ -640,7 +640,7 @@ static void scrub_fixup(struct scrub_bio *sbio, int ix)
640
640
if (scrub_fixup_check (sbio , ix ) == 0 )
641
641
break ;
642
642
}
643
- if (i == multi -> num_stripes )
643
+ if (i == bbio -> num_stripes )
644
644
goto uncorrectable ;
645
645
646
646
if (!sdev -> readonly ) {
@@ -655,7 +655,7 @@ static void scrub_fixup(struct scrub_bio *sbio, int ix)
655
655
}
656
656
}
657
657
658
- kfree (multi );
658
+ kfree (bbio );
659
659
spin_lock (& sdev -> stat_lock );
660
660
++ sdev -> stat .corrected_errors ;
661
661
spin_unlock (& sdev -> stat_lock );
@@ -665,7 +665,7 @@ static void scrub_fixup(struct scrub_bio *sbio, int ix)
665
665
return ;
666
666
667
667
uncorrectable :
668
- kfree (multi );
668
+ kfree (bbio );
669
669
spin_lock (& sdev -> stat_lock );
670
670
++ sdev -> stat .uncorrectable_errors ;
671
671
spin_unlock (& sdev -> stat_lock );
0 commit comments