aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-25 15:52:25 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-25 15:52:25 -0400
commitf2458e1d8c90958ed3631654cb7fd5ab01478505 (patch)
tree162aef9f17926d8ead01f00c22ebbe84b74179e5 /fs/btrfs/disk-io.c
parentf68cad0f9eb3c3cc100635bd0ea191ee093cf887 (diff)
Btrfs: change around extent-tree prealloc
Signed-off-by: Chris Mason <chris.mason@oracle.com>
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,