summaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorHui Su <sh_def@163.com>2020-10-14 01:54:48 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-10-14 03:38:32 +0200
commit82afbc32f22154d40f0bbbcfc7e18d2411f3dc92 (patch)
tree16fdcd2be78d48cdce893f73e768c4067654623e /mm/vmalloc.c
parentmm/memory-failure.c: remove unused macro `writeback' (diff)
downloadlinux-82afbc32f22154d40f0bbbcfc7e18d2411f3dc92.tar.xz
linux-82afbc32f22154d40f0bbbcfc7e18d2411f3dc92.zip
mm/vmalloc.c: update the comment in __vmalloc_area_node()
Since c67dc624757 ("mm/vmalloc: do not call kmemleak_free() on not yet accounted memory"), the __vunmap() have been changed to __vfree(), so update the confusing comment(). Signed-off-by: Hui Su <sh_def@163.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Roman Penyaev <rpenyaev@suse.de> Link: https://lkml.kernel.org/r/20200927155409.GA3315@rlk Signed-off-by: Linus Torvalds <torvalds@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 be4724b916b3..689e7ef08a5d 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2447,7 +2447,7 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask,
page = alloc_pages_node(node, alloc_mask|highmem_mask, 0);
if (unlikely(!page)) {
- /* Successfully allocated i pages, free them in __vunmap() */
+ /* Successfully allocated i pages, free them in __vfree() */
area->nr_pages = i;
atomic_long_add(area->nr_pages, &nr_vmalloc_pages);
goto fail;