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 6/8] btrfs: Remove unused parent_level var from btrfs_realloc_node
Date: Thu, 15 Mar 2018 14:36:27 +0200	[thread overview]
Message-ID: <1521117389-13712-7-git-send-email-nborisov@suse.com> (raw)
In-Reply-To: <1521117389-13712-1-git-send-email-nborisov@suse.com>

Added by f2183bde1a91 ("Btrfs: Add BH_Defrag to mark buffers that are
in need of defragging") but obsoleted by 3f157a2fd2ad ("Btrfs: Online
btree defragmentation fixes")

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
 fs/btrfs/ctree.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 1ef6b67f893a..88a8891ef2ec 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -1571,14 +1571,11 @@ int btrfs_realloc_node(struct btrfs_trans_handle *trans,
 	int end_slot;
 	int i;
 	int err = 0;
-	int parent_level;
 	int uptodate;
 	u32 blocksize;
 	int progress_passed = 0;
 	struct btrfs_disk_key disk_key;
 
-	parent_level = btrfs_header_level(parent);
-
 	WARN_ON(trans->transaction != fs_info->running_transaction);
 	WARN_ON(trans->transid != fs_info->generation);
 
-- 
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 ` Nikolay Borisov [this message]
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-7-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).