Skip to contentSkip to conversation

btrfs-progs: remove a redundant btrfs_find_block_group() call

PATCH In review LiYu 2 participants 2 messages Jul 22, 2009 Btrfs file system

lore
Share & tools
lore

LiYu

author
#0 lore raw

PATCH 1/1 btrfs-progs: remove a redundant btrfs_find_block_group() call

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

---

extent-tree.c +0 -1
index b2f9bb2..1c932c2 100644
@@ -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;
 
#1 lore raw
Quoted 2 lines · LiYu

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

Thanks for sending this patch along.

-chris