The same node is per defintion also in the same zone, so remove the duplicate
check.

Signed-off-by: Christoph Hellwig <[email protected]>

---
 include/sheep.h |    3 ---
 1 file changed, 3 deletions(-)

Index: sheepdog/include/sheep.h
===================================================================
--- sheepdog.orig/include/sheep.h       2012-07-13 09:24:16.416637589 +0200
+++ sheepdog/include/sheep.h    2012-07-17 18:48:30.503803049 +0200
@@ -75,9 +75,6 @@ next:
                        panic("bug"); /* not found */
                }
                for (i = 0; i < nr; i++) {
-                       if (same_node(entries, idx, nodes[i]))
-                               /* this node is already selected, so skip here 
*/
-                               goto next;
                        if (same_zone(entries, idx, nodes[i]))
                                /* this node is in the same zone, so skip here 
*/
                                goto next;
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to