[sheepdog] [PATCH] group: remove unused function

MORITA Kazutaka morita.kazutaka at gmail.com
Tue Sep 3 19:10:08 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/group.c |   10 ----------
 1 file changed, 10 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index 3906712..e2ee266 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -332,16 +332,6 @@ error:
 	put_request(req);
 }
 
-static inline int get_nodes_nr_from(struct list_head *l)
-{
-	struct node *node;
-	int nr = 0;
-	list_for_each_entry(node, l, list) {
-		nr++;
-	}
-	return nr;
-}
-
 int epoch_log_read_remote(uint32_t epoch, struct sd_node *nodes, int len,
 			  time_t *timestamp, struct vnode_info *vinfo)
 {
-- 
1.7.9.5




More information about the sheepdog mailing list