diff options
| author | Christoph Hellwig <[email protected]> | 2023-01-21 07:10:46 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-02-03 06:33:31 +0000 |
| commit | 5d3d31d6fb17a8eb83af50ea8a0616a3cfde3e58 (patch) | |
| tree | 7914f25e5c792dd05578f89363111c2b8fda1e8a /mm/vmalloc.c | |
| parent | mm: move vmalloc_init and free_work down in vmalloc.c (diff) | |
| download | kernel-5d3d31d6fb17a8eb83af50ea8a0616a3cfde3e58.tar.gz kernel-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/[email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Uladzislau Rezki (Sony) <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Konovalov <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Vincenzo Frascino <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/vmalloc.c')
| -rw-r--r-- | mm/vmalloc.c | 2 |
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); } /** |
