From: Nikolay Borisov <nborisov@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: Nikolay Borisov <nborisov@suse.com>
Subject: [PATCH 1/8] btrfs: Remove unused op_key var from add_delayed_refs
Date: Thu, 15 Mar 2018 14:36:22 +0200 [thread overview]
Message-ID: <1521117389-13712-2-git-send-email-nborisov@suse.com> (raw)
In-Reply-To: <1521117389-13712-1-git-send-email-nborisov@suse.com>
Added as part of 86d5f9944252 ("btrfs: convert prelimary reference
tracking to use rbtrees") but never used. tmp_op_key essentially
subsumed that variable
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
fs/btrfs/backref.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index 4e89598ca878..93f76a69dd44 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -773,15 +773,12 @@ static int add_delayed_refs(const struct btrfs_fs_info *fs_info,
struct btrfs_delayed_extent_op *extent_op = head->extent_op;
struct btrfs_key key;
struct btrfs_key tmp_op_key;
- struct btrfs_key *op_key = NULL;
struct rb_node *n;
int count;
int ret = 0;
- if (extent_op && extent_op->update_key) {
+ if (extent_op && extent_op->update_key)
btrfs_disk_key_to_cpu(&tmp_op_key, &extent_op->key);
- op_key = &tmp_op_key;
- }
spin_lock(&head->lock);
for (n = rb_first(&head->ref_tree); n; n = rb_next(n)) {
--
2.7.4
next prev 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 ` Nikolay Borisov [this message]
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 ` [PATCH 7/8] btrfs: Remove unused extent_root var from caching_thread Nikolay Borisov
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-2-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).