提交 338dae1a 编写于 作者: N Nikolay Borisov 提交者: David Sterba

btrfs: remove max_active var from open_ctree

Introduced by 5cdc7ad3 ("btrfs: Replace fs_info->workers with
btrfs_workqueue.") but obsoleted by 2a458198 ("btrfs: factor
btrfs_init_workqueues() out of open_ctree()").
Signed-off-by: NNikolay Borisov <nborisov@suse.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 8535dc19
...@@ -2389,7 +2389,6 @@ int open_ctree(struct super_block *sb, ...@@ -2389,7 +2389,6 @@ int open_ctree(struct super_block *sb,
int err = -EINVAL; int err = -EINVAL;
int num_backups_tried = 0; int num_backups_tried = 0;
int backup_index = 0; int backup_index = 0;
u32 max_active;
int clear_free_space_tree = 0; int clear_free_space_tree = 0;
tree_root = fs_info->tree_root = btrfs_alloc_root(fs_info, GFP_KERNEL); tree_root = fs_info->tree_root = btrfs_alloc_root(fs_info, GFP_KERNEL);
...@@ -2698,8 +2697,6 @@ int open_ctree(struct super_block *sb, ...@@ -2698,8 +2697,6 @@ int open_ctree(struct super_block *sb,
goto fail_alloc; goto fail_alloc;
} }
max_active = fs_info->thread_pool_size;
ret = btrfs_init_workqueues(fs_info, fs_devices); ret = btrfs_init_workqueues(fs_info, fs_devices);
if (ret) { if (ret) {
err = ret; err = ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册