Skip to contentSkip to conversation

mm/vmalloc.c: update the comment in __vmalloc_area_node()

PATCH Applied Hui Su 1 participant 1 message Sep 27, 2020

Subsystems (2)
lore
Share & tools
lore

Hui Su

author
#0 lore raw

PATCH 1/1 mm/vmalloc.c: update the comment in __vmalloc_area_node()

since c67dc624757 commit, the __vunmap() have been changed to __vfree(), so update the confusing comment().

---
 mm/vmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/vmalloc.c +1 -1
index be4724b916b3..689e7ef08a5d 100644
@@ -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;
Signature · 1 line
2.25.1