aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 7aff6bb55d91..956727f015a5 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -542,6 +542,8 @@ struct btrfs_root *open_ctree(struct super_block *sb)
542 fs_info->btree_inode->i_size = sb->s_bdev->bd_inode->i_size; 542 fs_info->btree_inode->i_size = sb->s_bdev->bd_inode->i_size;
543 fs_info->btree_inode->i_mapping->a_ops = &btree_aops; 543 fs_info->btree_inode->i_mapping->a_ops = &btree_aops;
544 fs_info->do_barriers = 1; 544 fs_info->do_barriers = 1;
545 fs_info->extent_tree_insert_nr = 0;
546 fs_info->extent_tree_prealloc_nr = 0;
545 BTRFS_I(fs_info->btree_inode)->root = tree_root; 547 BTRFS_I(fs_info->btree_inode)->root = tree_root;
546 memset(&BTRFS_I(fs_info->btree_inode)->location, 0, 548 memset(&BTRFS_I(fs_info->btree_inode)->location, 0,
547 sizeof(struct btrfs_key)); 549 sizeof(struct btrfs_key));
@@ -555,7 +557,6 @@ struct btrfs_root *open_ctree(struct super_block *sb)
555 } 557 }
556 mutex_init(&fs_info->trans_mutex); 558 mutex_init(&fs_info->trans_mutex);
557 mutex_init(&fs_info->fs_mutex); 559 mutex_init(&fs_info->fs_mutex);
558 memset(&fs_info->current_insert, 0, sizeof(fs_info->current_insert));
559 memset(&fs_info->last_insert, 0, sizeof(fs_info->last_insert)); 560 memset(&fs_info->last_insert, 0, sizeof(fs_info->last_insert));
560 561
561 __setup_root(sb->s_blocksize, dev_root, 562 __setup_root(sb->s_blocksize, dev_root,