diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index c4404e1e9cfb..26493c2fc237 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1211,7 +1211,7 @@ static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, | |||
1211 | root->log_transid_committed = -1; | 1211 | root->log_transid_committed = -1; |
1212 | root->last_log_commit = 0; | 1212 | root->last_log_commit = 0; |
1213 | if (!dummy) | 1213 | if (!dummy) |
1214 | extent_io_tree_init(&root->dirty_log_pages, NULL); | 1214 | extent_io_tree_init(fs_info, &root->dirty_log_pages, NULL); |
1215 | 1215 | ||
1216 | memset(&root->root_key, 0, sizeof(root->root_key)); | 1216 | memset(&root->root_key, 0, sizeof(root->root_key)); |
1217 | memset(&root->root_item, 0, sizeof(root->root_item)); | 1217 | memset(&root->root_item, 0, sizeof(root->root_item)); |
@@ -2141,7 +2141,7 @@ static void btrfs_init_btree_inode(struct btrfs_fs_info *fs_info) | |||
2141 | inode->i_mapping->a_ops = &btree_aops; | 2141 | inode->i_mapping->a_ops = &btree_aops; |
2142 | 2142 | ||
2143 | RB_CLEAR_NODE(&BTRFS_I(inode)->rb_node); | 2143 | RB_CLEAR_NODE(&BTRFS_I(inode)->rb_node); |
2144 | extent_io_tree_init(&BTRFS_I(inode)->io_tree, inode); | 2144 | extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, inode); |
2145 | BTRFS_I(inode)->io_tree.track_uptodate = 0; | 2145 | BTRFS_I(inode)->io_tree.track_uptodate = 0; |
2146 | extent_map_tree_init(&BTRFS_I(inode)->extent_tree); | 2146 | extent_map_tree_init(&BTRFS_I(inode)->extent_tree); |
2147 | 2147 | ||
@@ -2751,8 +2751,8 @@ int open_ctree(struct super_block *sb, | |||
2751 | fs_info->block_group_cache_tree = RB_ROOT; | 2751 | fs_info->block_group_cache_tree = RB_ROOT; |
2752 | fs_info->first_logical_byte = (u64)-1; | 2752 | fs_info->first_logical_byte = (u64)-1; |
2753 | 2753 | ||
2754 | extent_io_tree_init(&fs_info->freed_extents[0], NULL); | 2754 | extent_io_tree_init(fs_info, &fs_info->freed_extents[0], NULL); |
2755 | extent_io_tree_init(&fs_info->freed_extents[1], NULL); | 2755 | extent_io_tree_init(fs_info, &fs_info->freed_extents[1], NULL); |
2756 | fs_info->pinned_extents = &fs_info->freed_extents[0]; | 2756 | fs_info->pinned_extents = &fs_info->freed_extents[0]; |
2757 | set_bit(BTRFS_FS_BARRIER, &fs_info->flags); | 2757 | set_bit(BTRFS_FS_BARRIER, &fs_info->flags); |
2758 | 2758 | ||