]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - include/linux/rculist.h
list: fix order of arguments for hlist_add_after(_rcu)
[thirdparty/kernel/stable.git] / include / linux / rculist.h
index 8183b46fbaa2d6da9817ead257735396a6ec7b0c..372ad5e0dcb88df4af003686c7057af3e900d281 100644 (file)
@@ -432,9 +432,9 @@ static inline void hlist_add_before_rcu(struct hlist_node *n,
 }
 
 /**
- * hlist_add_after_rcu
- * @prev: the existing element to add the new element after.
+ * hlist_add_behind_rcu
  * @n: the new element to add to the hash list.
+ * @prev: the existing element to add the new element after.
  *
  * Description:
  * Adds the specified element to the specified hlist
@@ -449,8 +449,8 @@ static inline void hlist_add_before_rcu(struct hlist_node *n,
  * hlist_for_each_entry_rcu(), used to prevent memory-consistency
  * problems on Alpha CPUs.
  */
-static inline void hlist_add_after_rcu(struct hlist_node *prev,
-                                      struct hlist_node *n)
+static inline void hlist_add_behind_rcu(struct hlist_node *n,
+                                       struct hlist_node *prev)
 {
        n->next = prev->next;
        n->pprev = &prev->next;