[sheepdog] [PATCH] remove duplicated check in get_nth_node

Christoph Hellwig hch at infradead.org
Tue Jul 17 19:16:11 CEST 2012


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

Signed-off-by: Christoph Hellwig <hch at lst.de>

---
 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;



More information about the sheepdog mailing list