|
@@ -717,8 +717,6 @@ static int reada_start_machine_dev(struct btrfs_fs_info *fs_info,
|
|
}
|
|
}
|
|
logical = re->logical;
|
|
logical = re->logical;
|
|
|
|
|
|
- reada_extent_put(fs_info, re);
|
|
|
|
-
|
|
|
|
atomic_inc(&dev->reada_in_flight);
|
|
atomic_inc(&dev->reada_in_flight);
|
|
ret = reada_tree_block_flagged(fs_info->extent_root, logical,
|
|
ret = reada_tree_block_flagged(fs_info->extent_root, logical,
|
|
mirror_num, &eb);
|
|
mirror_num, &eb);
|
|
@@ -730,6 +728,8 @@ static int reada_start_machine_dev(struct btrfs_fs_info *fs_info,
|
|
if (eb)
|
|
if (eb)
|
|
free_extent_buffer(eb);
|
|
free_extent_buffer(eb);
|
|
|
|
|
|
|
|
+ reada_extent_put(fs_info, re);
|
|
|
|
+
|
|
return 1;
|
|
return 1;
|
|
|
|
|
|
}
|
|
}
|