Btrfs: pass fs_info to btrfs_map_block() instead of mapping_tree
This is required for the device replace procedure in a later step. Two calling functions also had to be changed to have the fs_info pointer: repair_io_failure() and scrub_setup_recheck_block(). Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
committed by
Josef Bacik
parent
5d9640517d
commit
3ec706c831
@ -1582,7 +1582,7 @@ static int btrfsic_map_block(struct btrfsic_state *state, u64 bytenr, u32 len,
|
||||
struct btrfs_device *device;
|
||||
|
||||
length = len;
|
||||
ret = btrfs_map_block(&state->root->fs_info->mapping_tree, READ,
|
||||
ret = btrfs_map_block(state->root->fs_info, READ,
|
||||
bytenr, &length, &multi, mirror_num);
|
||||
|
||||
device = multi->stripes[0].dev;
|
||||
|
Reference in New Issue
Block a user