Skip to content

Commit

Permalink
remove duplicated check in get_nth_node
Browse files Browse the repository at this point in the history
The same node is per defintion also in the same zone, so remove the duplicate
check.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
  • Loading branch information
Christoph Hellwig authored and liuy committed Jul 18, 2012
1 parent e840a82 commit 5b27736
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/sheep.h
Expand Up @@ -75,9 +75,6 @@ static inline int get_nth_node(struct sd_vnode *entries,
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;
Expand Down

0 comments on commit 5b27736

Please sign in to comment.