summaryrefslogtreecommitdiff
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-01-21 08:10:46 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-02-02 22:33:31 -0800
commit5d3d31d6fb17a8eb83af50ea8a0616a3cfde3e58 (patch)
tree7914f25e5c792dd05578f89363111c2b8fda1e8a /mm/vmalloc.c
parent208162f42f958b37147d3c1c5f947c7c1a8b9c41 (diff)
downloadlwn-5d3d31d6fb17a8eb83af50ea8a0616a3cfde3e58.tar.gz
lwn-5d3d31d6fb17a8eb83af50ea8a0616a3cfde3e58.zip
mm: call vfree instead of __vunmap from delayed_vfree_work
This adds an extra, never taken, in_interrupt() branch, but will allow to cut down the maze of vfree helpers. Link: https://lkml.kernel.org/r/20230121071051.1143058-6-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Alexander Potapenko <glider@google.com> Cc: Andrey Konovalov <andreyknvl@gmail.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Vincenzo Frascino <vincenzo.frascino@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r--mm/vmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 333228c652d1..0c0267b34afa 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2707,7 +2707,7 @@ static void delayed_vfree_work(struct work_struct *w)
struct llist_node *t, *llnode;
llist_for_each_safe(llnode, t, llist_del_all(&p->list))
- __vunmap((void *)llnode, 1);
+ vfree(llnode);
}
/**