linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nikolay Borisov <nborisov@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: Nikolay Borisov <nborisov@suse.com>
Subject: [PATCH 7/8] btrfs: Remove unused extent_root var from caching_thread
Date: Thu, 15 Mar 2018 14:36:28 +0200	[thread overview]
Message-ID: <1521117389-13712-8-git-send-email-nborisov@suse.com> (raw)
In-Reply-To: <1521117389-13712-1-git-send-email-nborisov@suse.com>

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>
---
 fs/btrfs/extent-tree.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 1469117a8e37..e15ef42a5d4d 100644
--- a/fs/btrfs/extent-tree.c
+++ b/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_fs_info *fs_info;
 	struct btrfs_caching_control *caching_ctl;
-	struct btrfs_root *extent_root;
 	int ret;
 
 	caching_ctl = container_of(work, struct btrfs_caching_control, work);
 	block_group = caching_ctl->block_group;
 	fs_info = block_group->fs_info;
-	extent_root = fs_info->extent_root;
 
 	mutex_lock(&caching_ctl->mutex);
 	down_read(&fs_info->commit_root_sem);
-- 
2.7.4


  parent reply	other threads:[~2018-03-15 12:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-15 12:36 [PATCH 0/8] Make the code -Wunused clean Nikolay Borisov
2018-03-15 12:36 ` [PATCH 1/8] btrfs: Remove unused op_key var from add_delayed_refs Nikolay Borisov
2018-03-15 12:36 ` [PATCH 2/8] btrfs: Remove unused length var from scrub_handle_errored_block Nikolay Borisov
2018-03-15 12:36 ` [PATCH 3/8] btrfs: Remove unused tot_len var from lzo_decompress Nikolay Borisov
2018-03-15 12:36 ` [PATCH 4/8] btrfs: Remove unused root var from relink_file_extents Nikolay Borisov
2018-03-15 12:36 ` [PATCH 5/8] btrfs: remove max_active var from open_ctree Nikolay Borisov
2018-03-15 12:36 ` [PATCH 6/8] btrfs: Remove unused parent_level var from btrfs_realloc_node Nikolay Borisov
2018-03-15 12:36 ` Nikolay Borisov [this message]
2018-03-15 12:36 ` [PATCH 8/8] btrfs: Remove unused flush var in shrink_delalloc Nikolay Borisov
2018-03-16 15:38 ` [PATCH 0/8] Make the code -Wunused clean David Sterba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1521117389-13712-8-git-send-email-nborisov@suse.com \
    --to=nborisov@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).