Skip to contentSkip to conversation

llists-move-llist_reverse_order-from-raid5-to-llistc.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 15, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] llists-move-llist_reverse_order-from-raid5-to-llistc.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 15 Nov 2013 12:09:23 -0800

The patch titled
Subject: llists: move llist_reverse_order from raid5 to llist.c
has been removed from the -mm tree. Its filename was
llists-move-llist_reverse_order-from-raid5-to-llistc.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: llists: move llist_reverse_order from raid5 to llist.c

Make this useful helper available for other users.

---

 drivers/md/raid5.c    |   14 --------------
 include/linux/llist.h |    2 ++
 lib/llist.c           |   22 ++++++++++++++++++++++
 3 files changed, 24 insertions(+), 14 deletions(-)
drivers/md/raid5.c renamed from drivers/md/raid5.c~llists-move-llist_reverse_order-from-raid5-to-llistc +0 -14
diff -puN drivers/md/raid5.c~llists-move-llist_reverse_order-from-raid5-to-llistc drivers/md/raid5.c
@@ -293,20 +293,6 @@ static void __release_stripe(struct r5co
 		do_release_stripe(conf, sh);
 }
 
-static struct llist_node *llist_reverse_order(struct llist_node *head)
-{
-	struct llist_node *new_head = NULL;
-
-	while (head) {
-		struct llist_node *tmp = head;
-		head = head->next;
-		tmp->next = new_head;
-		new_head = tmp;
-	}
-
-	return new_head;
-}
-
 /* should hold conf->device_lock already */
 static int release_stripe_list(struct r5conf *conf)
 {
include/linux/llist.h renamed from include/linux/llist.h~llists-move-llist_reverse_order-from-raid5-to-llistc +2 -0
diff -puN include/linux/llist.h~llists-move-llist_reverse_order-from-raid5-to-llistc include/linux/llist.h
@@ -195,4 +195,6 @@ static inline struct llist_node *llist_d
 
 extern struct llist_node *llist_del_first(struct llist_head *head);
 
+struct llist_node *llist_reverse_order(struct llist_node *head);
+
 #endif /* LLIST_H */
lib/llist.c renamed from lib/llist.c~llists-move-llist_reverse_order-from-raid5-to-llistc +22 -0
diff -puN lib/llist.c~llists-move-llist_reverse_order-from-raid5-to-llistc lib/llist.c
@@ -81,3 +81,25 @@ struct llist_node *llist_del_first(struc
 	return entry;
 }
 EXPORT_SYMBOL_GPL(llist_del_first);
+
+/**
+ * llist_reverse_order - reverse order of a llist chain
+ * @head:	first item of the list to be reversed
+ *
+ * Reverse the oder of a chain of llist entries and return the
+ * new first entry.
+ */
+struct llist_node *llist_reverse_order(struct llist_node *head)
+{
+	struct llist_node *new_head = NULL;
+
+	while (head) {
+		struct llist_node *tmp = head;
+		head = head->next;
+		tmp->next = new_head;
+		new_head = tmp;
+	}
+
+	return new_head;
+}
+EXPORT_SYMBOL_GPL(llist_reverse_order);

_

Patches currently in -mm which might be from [email protected] are

origin.patch kernel-use-lockless-list-for-smp_call_function_single.patch blk-mq-use-__smp_call_function_single-directly.patch linux-next.patch