[sheepdog] [PATCH] util: remove an unnecessary macro in list.h

Hitoshi Mitake mitake.hitoshi at gmail.com
Fri Mar 29 15:32:13 CET 2013


list_for_each_entry_revert_safe_rcu() is no longer used. Let's remove
this. This patch also corrects place of the endif in list.h.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
 include/list.h |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/include/list.h b/include/list.h
index 9555e3b..c8ee425 100644
--- a/include/list.h
+++ b/include/list.h
@@ -251,14 +251,5 @@ static inline void hlist_add_after(struct hlist_node *n,
 	     pos && ({ n = pos->next; 1; }) &&				\
 		     ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1; }); \
 	     pos = n)
-#endif
 
-
-#define list_for_each_entry_revert_safe_rcu(pos, n, head, member)          \
-	for (pos = cds_list_entry(rcu_dereference((head)->prev),           \
-				  typeof(*pos), member),                   \
-	     n = cds_list_entry(rcu_dereference(pos->member.prev),         \
-				typeof(*pos), member);                     \
-				&pos->member != (head);                    \
-	     pos = n, n = cds_list_entry(rcu_dereference(pos->member.prev),\
-					 typeof(*pos), member))
+#endif	/* __LIST_H__ */
-- 
1.7.5.1




More information about the sheepdog mailing list