All of lore.kernel.org
 help / color / mirror / Atom feed
From: LiYu <raise.sail@gmail.com>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: [PATCH] btrfs-progs: remove a redundant btrfs_find_block_group() call
Date: Wed, 22 Jul 2009 15:18:53 +0800	[thread overview]
Message-ID: <4A66BD5D.9060403@gmail.com> (raw)


It seem that we have a redundant btrfs_find_block_group() call in extent-tree.c/find_search_start(), is this guess right?

Signed-off-by: Li Yu <raise.sail@gmail.com>

---
diff --git a/extent-tree.c b/extent-tree.c
index b2f9bb2..1c932c2 100644
--- a/extent-tree.c
+++ b/extent-tree.c
@@ -299,7 +299,6 @@ no_cache:
                goto out;
        }
        cache = btrfs_find_block_group(root, cache, last, data, 0);
-       cache = btrfs_find_block_group(root, cache, last, data, 0);
        if (!cache)
                goto no_cache;
 

             reply	other threads:[~2009-07-22  7:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-22  7:18 LiYu [this message]
2009-07-22 14:41 ` [PATCH] btrfs-progs: remove a redundant btrfs_find_block_group() call Chris Mason

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=4A66BD5D.9060403@gmail.com \
    --to=raise.sail@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.