diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2012-11-05 11:26:40 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-12 17:15:37 -0500 |
commit | e922e087a35c437acef3bc88ce31e59c699c38bd (patch) | |
tree | 7fe78c7b4b3927132d5f06617c47f26a3dbcc686 /fs/btrfs/disk-io.c | |
parent | 1acd6831d98779c88cd57f0a5826d6df0b09f3fa (diff) |
Btrfs: enhance btrfs structures for device replace support
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 42a8024e935f..9d1b71060813 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -2131,6 +2131,11 @@ int open_ctree(struct super_block *sb, | |||
2131 | init_rwsem(&fs_info->extent_commit_sem); | 2131 | init_rwsem(&fs_info->extent_commit_sem); |
2132 | init_rwsem(&fs_info->cleanup_work_sem); | 2132 | init_rwsem(&fs_info->cleanup_work_sem); |
2133 | init_rwsem(&fs_info->subvol_sem); | 2133 | init_rwsem(&fs_info->subvol_sem); |
2134 | fs_info->dev_replace.lock_owner = 0; | ||
2135 | atomic_set(&fs_info->dev_replace.nesting_level, 0); | ||
2136 | mutex_init(&fs_info->dev_replace.lock_finishing_cancel_unmount); | ||
2137 | mutex_init(&fs_info->dev_replace.lock_management_lock); | ||
2138 | mutex_init(&fs_info->dev_replace.lock); | ||
2134 | 2139 | ||
2135 | spin_lock_init(&fs_info->qgroup_lock); | 2140 | spin_lock_init(&fs_info->qgroup_lock); |
2136 | fs_info->qgroup_tree = RB_ROOT; | 2141 | fs_info->qgroup_tree = RB_ROOT; |