diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2009-09-24 09:24:43 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-09-24 09:24:43 -0400 |
commit | c65ddb52dc412c9b67681b1aa16cd1bac8434e24 (patch) | |
tree | 1febb9b954e1569d46382abd741ee7bbd3670173 /fs/btrfs | |
parent | 0257bb82d21bedff26541bcf12f1461c23f9ed61 (diff) |
Btrfs: hash the btree inode during fill_super
The snapshot deletion patches dropped this line, but the inode
needs to be hashed.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index a0d41e713f3c..f1e905f7e701 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1664,6 +1664,7 @@ struct btrfs_root *open_ctree(struct super_block *sb, | |||
1664 | memset(&BTRFS_I(fs_info->btree_inode)->location, 0, | 1664 | memset(&BTRFS_I(fs_info->btree_inode)->location, 0, |
1665 | sizeof(struct btrfs_key)); | 1665 | sizeof(struct btrfs_key)); |
1666 | BTRFS_I(fs_info->btree_inode)->dummy_inode = 1; | 1666 | BTRFS_I(fs_info->btree_inode)->dummy_inode = 1; |
1667 | insert_inode_hash(fs_info->btree_inode); | ||
1667 | 1668 | ||
1668 | spin_lock_init(&fs_info->block_group_cache_lock); | 1669 | spin_lock_init(&fs_info->block_group_cache_lock); |
1669 | fs_info->block_group_cache_tree.rb_node = NULL; | 1670 | fs_info->block_group_cache_tree.rb_node = NULL; |