mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [merged] mm-dont-reinvent-the-wheel-but-use-existing-llist-api.patch removed from -mm tree
@ 2017-09-07 18:41 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-09-07 18:41 UTC (permalink / raw)
  To: aryabinin, byungchul.park, joelaf, mhocko, mm-commits, vbabka, zijun_hu


The patch titled
     Subject: mm/vmalloc.c: don't reinvent the wheel but use existing llist API
has been removed from the -mm tree.  Its filename was
     mm-dont-reinvent-the-wheel-but-use-existing-llist-api.patch

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

------------------------------------------------------
From: Byungchul Park <byungchul.park@lge.com>
Subject: mm/vmalloc.c: don't reinvent the wheel but use existing llist API

Although llist provides proper APIs, they are not used.  Make them used.

Link: http://lkml.kernel.org/r/1502095374-16112-1-git-send-email-byungchul.park@lge.com
Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Cc: zijun_hu <zijun_hu@htc.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Joel Fernandes <joelaf@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/vmalloc.c |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff -puN mm/vmalloc.c~mm-dont-reinvent-the-wheel-but-use-existing-llist-api mm/vmalloc.c
--- a/mm/vmalloc.c~mm-dont-reinvent-the-wheel-but-use-existing-llist-api
+++ a/mm/vmalloc.c
@@ -49,12 +49,10 @@ static void __vunmap(const void *, int);
 static void free_work(struct work_struct *w)
 {
 	struct vfree_deferred *p = container_of(w, struct vfree_deferred, wq);
-	struct llist_node *llnode = llist_del_all(&p->list);
-	while (llnode) {
-		void *p = llnode;
-		llnode = llist_next(llnode);
-		__vunmap(p, 1);
-	}
+	struct llist_node *t, *llnode;
+
+	llist_for_each_safe(llnode, t, llist_del_all(&p->list))
+		__vunmap((void *)llnode, 1);
 }
 
 /*** Page table manipulation functions ***/
_

Patches currently in -mm which might be from byungchul.park@lge.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-07 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-07 18:41 [merged] mm-dont-reinvent-the-wheel-but-use-existing-llist-api.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).