diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2012-11-05 08:59:07 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-12 17:15:34 -0500 |
commit | 5d9640517d92d05843711ea982cbeff42d7ed32d (patch) | |
tree | fa7f4fb0a3a5017e0e8cdcd7f7709e4d5a381785 /fs/btrfs/disk-io.c | |
parent | 7ba15b7d211846c187a7c5dc75a5964476f8bc89 (diff) |
Btrfs: Pass fs_info to btrfs_num_copies() instead of mapping_tree
This is required for the device replace procedure in a later step.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index ff5d259ac275..ba2b931fd8f6 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -387,7 +387,7 @@ static int btree_read_extent_buffer_pages(struct btrfs_root *root, | |||
387 | if (test_bit(EXTENT_BUFFER_CORRUPT, &eb->bflags)) | 387 | if (test_bit(EXTENT_BUFFER_CORRUPT, &eb->bflags)) |
388 | break; | 388 | break; |
389 | 389 | ||
390 | num_copies = btrfs_num_copies(&root->fs_info->mapping_tree, | 390 | num_copies = btrfs_num_copies(root->fs_info, |
391 | eb->start, eb->len); | 391 | eb->start, eb->len); |
392 | if (num_copies == 1) | 392 | if (num_copies == 1) |
393 | break; | 393 | break; |