[PATCH] btrfs-progs: remove a redundant btrfs_find_block_group() call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

---
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;
 
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux