public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: remove a redundant btrfs_find_block_group() call
@ 2009-07-22  7:18 LiYu
  2009-07-22 14:41 ` Chris Mason
  0 siblings, 1 reply; 2+ messages in thread
From: LiYu @ 2009-07-22  7:18 UTC (permalink / raw)
  To: linux-btrfs


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;
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-22 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22  7:18 [PATCH] btrfs-progs: remove a redundant btrfs_find_block_group() call LiYu
2009-07-22 14:41 ` Chris Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox