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

Added by 08e007d2e577 ("Btrfs: improve the noflush reservation") and
made redundant by 17024ad0a0fd ("Btrfs: fix early ENOSPC due to
delalloc")

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

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index e15ef42a5d4d..bb1861033071 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -4829,7 +4829,6 @@ static void shrink_delalloc(struct btrfs_fs_info *fs_info, u64 to_reclaim,
 	long time_left;
 	unsigned long nr_pages;
 	int loops;
-	enum btrfs_reserve_flush_enum flush;
 
 	/* Calc the number of the pages we need flush for space reservation */
 	items = calc_reclaim_items_nr(fs_info, to_reclaim);
@@ -4870,10 +4869,6 @@ static void shrink_delalloc(struct btrfs_fs_info *fs_info, u64 to_reclaim,
 			   atomic_read(&fs_info->async_delalloc_pages) <=
 			   (int)max_reclaim);
 skip_async:
-		if (!trans)
-			flush = BTRFS_RESERVE_FLUSH_ALL;
-		else
-			flush = BTRFS_RESERVE_NO_FLUSH;
 		spin_lock(&space_info->lock);
 		if (list_empty(&space_info->tickets) &&
 		    list_empty(&space_info->priority_tickets)) {
-- 
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 ` [PATCH 7/8] btrfs: Remove unused extent_root var from caching_thread Nikolay Borisov
2018-03-15 12:36 ` Nikolay Borisov [this message]
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-9-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).