aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2016-06-21 10:40:19 -0400
committerDavid Sterba <dsterba@suse.com>2016-12-06 10:06:57 -0500
commit5b4aacefb8fbfc996e68b9b083d30f8bc0972449 (patch)
treecd4f1669a5bf9f8f2896c27f4b0d9d51e8a68e43 /fs/btrfs/disk-io.c
parent515bdc479097ec9d5f389202842345af3162f71c (diff)
btrfs: call functions that overwrite their root parameter with fs_info
There are 11 functions that accept a root parameter and immediately overwrite it. We can pass those an fs_info pointer instead. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 811662cce977..92c2aea5118b 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2937,7 +2937,7 @@ int open_ctree(struct super_block *sb,
2937 read_extent_buffer(chunk_root->node, fs_info->chunk_tree_uuid, 2937 read_extent_buffer(chunk_root->node, fs_info->chunk_tree_uuid,
2938 btrfs_header_chunk_tree_uuid(chunk_root->node), BTRFS_UUID_SIZE); 2938 btrfs_header_chunk_tree_uuid(chunk_root->node), BTRFS_UUID_SIZE);
2939 2939
2940 ret = btrfs_read_chunk_tree(chunk_root); 2940 ret = btrfs_read_chunk_tree(fs_info);
2941 if (ret) { 2941 if (ret) {
2942 btrfs_err(fs_info, "failed to read chunk tree: %d", ret); 2942 btrfs_err(fs_info, "failed to read chunk tree: %d", ret);
2943 goto fail_tree_roots; 2943 goto fail_tree_roots;
@@ -3038,7 +3038,7 @@ retry_root_backup:
3038 goto fail_sysfs; 3038 goto fail_sysfs;
3039 } 3039 }
3040 3040
3041 ret = btrfs_read_block_groups(fs_info->extent_root); 3041 ret = btrfs_read_block_groups(fs_info);
3042 if (ret) { 3042 if (ret) {
3043 btrfs_err(fs_info, "failed to read block groups: %d", ret); 3043 btrfs_err(fs_info, "failed to read block groups: %d", ret);
3044 goto fail_sysfs; 3044 goto fail_sysfs;