Commit cacca6ba authored by Uladzislau Rezki (Sony)'s avatar Uladzislau Rezki (Sony) Committed by Linus Torvalds

mm/vmalloc.c: remove "node" argument

Patch series "Some cleanups for the KVA/vmalloc", v5.

This patch (of 4):

Remove unused argument from the __alloc_vmap_area() function.

Link: http://lkml.kernel.org/r/20190606120411.8298-2-urezki@gmail.comSigned-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarRoman Gushchin <guro@fb.com>
Cc: Hillf Danton <hdanton@sina.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 543bdb2d
...@@ -986,7 +986,7 @@ adjust_va_to_fit_type(struct vmap_area *va, ...@@ -986,7 +986,7 @@ adjust_va_to_fit_type(struct vmap_area *va,
*/ */
static __always_inline unsigned long static __always_inline unsigned long
__alloc_vmap_area(unsigned long size, unsigned long align, __alloc_vmap_area(unsigned long size, unsigned long align,
unsigned long vstart, unsigned long vend, int node) unsigned long vstart, unsigned long vend)
{ {
unsigned long nva_start_addr; unsigned long nva_start_addr;
struct vmap_area *va; struct vmap_area *va;
...@@ -1063,7 +1063,7 @@ static struct vmap_area *alloc_vmap_area(unsigned long size, ...@@ -1063,7 +1063,7 @@ static struct vmap_area *alloc_vmap_area(unsigned long size,
* If an allocation fails, the "vend" address is * If an allocation fails, the "vend" address is
* returned. Therefore trigger the overflow path. * returned. Therefore trigger the overflow path.
*/ */
addr = __alloc_vmap_area(size, align, vstart, vend, node); addr = __alloc_vmap_area(size, align, vstart, vend);
if (unlikely(addr == vend)) if (unlikely(addr == vend))
goto overflow; goto overflow;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment