浏览代码

btrfs: Remove unused extent_root var from caching_thread

Added by b4570aa994b8 ("btrfs: fix compiling with CONFIG_BTRFS_DEBUG
enabled.") and obsoleted by 2ff7e61e0d30 ("btrfs: take an fs_info
directly when the root is not used otherwise").

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Nikolay Borisov 7 年之前
父节点
当前提交
101d2dc0b2
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      fs/btrfs/extent-tree.c

+ 0 - 2
fs/btrfs/extent-tree.c

@@ -535,13 +535,11 @@ static noinline void caching_thread(struct btrfs_work *work)
 	struct btrfs_block_group_cache *block_group;
 	struct btrfs_block_group_cache *block_group;
 	struct btrfs_fs_info *fs_info;
 	struct btrfs_fs_info *fs_info;
 	struct btrfs_caching_control *caching_ctl;
 	struct btrfs_caching_control *caching_ctl;
-	struct btrfs_root *extent_root;
 	int ret;
 	int ret;
 
 
 	caching_ctl = container_of(work, struct btrfs_caching_control, work);
 	caching_ctl = container_of(work, struct btrfs_caching_control, work);
 	block_group = caching_ctl->block_group;
 	block_group = caching_ctl->block_group;
 	fs_info = block_group->fs_info;
 	fs_info = block_group->fs_info;
-	extent_root = fs_info->extent_root;
 
 
 	mutex_lock(&caching_ctl->mutex);
 	mutex_lock(&caching_ctl->mutex);
 	down_read(&fs_info->commit_root_sem);
 	down_read(&fs_info->commit_root_sem);