summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2012-11-05 17:26:40 +0100
committerJosef Bacik <jbacik@fusionio.com>2012-12-12 17:15:37 -0500
commite922e087a35c437acef3bc88ce31e59c699c38bd (patch)
tree7fe78c7b4b3927132d5f06617c47f26a3dbcc686 /fs/btrfs/disk-io.c
parent1acd6831d98779c88cd57f0a5826d6df0b09f3fa (diff)
downloadop-kernel-dev-e922e087a35c437acef3bc88ce31e59c699c38bd.zip
op-kernel-dev-e922e087a35c437acef3bc88ce31e59c699c38bd.tar.gz
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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 42a8024..9d1b710 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2131,6 +2131,11 @@ int open_ctree(struct super_block *sb,
init_rwsem(&fs_info->extent_commit_sem);
init_rwsem(&fs_info->cleanup_work_sem);
init_rwsem(&fs_info->subvol_sem);
+ fs_info->dev_replace.lock_owner = 0;
+ atomic_set(&fs_info->dev_replace.nesting_level, 0);
+ mutex_init(&fs_info->dev_replace.lock_finishing_cancel_unmount);
+ mutex_init(&fs_info->dev_replace.lock_management_lock);
+ mutex_init(&fs_info->dev_replace.lock);
spin_lock_init(&fs_info->qgroup_lock);
fs_info->qgroup_tree = RB_ROOT;
OpenPOWER on IntegriCloud