btrfs: dev-replace: remove unused members of btrfs_dev_replace
[sfrench/cifs-2.6.git] / fs / btrfs / disk-io.c
index 9b208ccf24fe7f45399d76e9bae4f9e247e12af6..c1d287a766c19aa485ab7f36c5d32d18076e9268 100644 (file)
@@ -1154,7 +1154,6 @@ static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info,
        root->highest_objectid = 0;
        root->nr_delalloc_inodes = 0;
        root->nr_ordered_extents = 0;
-       root->name = NULL;
        root->inode_tree = RB_ROOT;
        INIT_RADIX_TREE(&root->delayed_nodes_tree, GFP_ATOMIC);
        root->block_rsv = NULL;
@@ -2155,8 +2154,6 @@ static void btrfs_init_btree_inode(struct btrfs_fs_info *fs_info)
 
 static void btrfs_init_dev_replace_locks(struct btrfs_fs_info *fs_info)
 {
-       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);
        rwlock_init(&fs_info->dev_replace.lock);
        atomic_set(&fs_info->dev_replace.read_locks, 0);
@@ -3849,7 +3846,6 @@ static void free_fs_root(struct btrfs_root *root)
        free_extent_buffer(root->commit_root);
        kfree(root->free_ino_ctl);
        kfree(root->free_ino_pinned);
-       kfree(root->name);
        btrfs_put_fs_root(root);
 }