cgroup: Use kvfree in pidlist_free()
PATCH 1/1 cgroup: Use kvfree in pidlist_free()
The wrapper already calls the appropriate free
function, use it instead of spinning our own.
Signed-off-by Bandan Das <[email protected]>
--- kernel/cgroup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
kernel/cgroup.c +1 -4
@@ -3806,10 +3806,7 @@ static void *pidlist_allocate(int count)static void pidlist_free (void *p) { -if (is_vmalloc_addr (p)) -vfree (p); -else -kfree (p); +kvfree (p); }/*
Signature · 1 line
2.1.0
Quoted 5 lines · Bandan Das
The wrapper already calls the appropriate free
function, use it instead of spinning our own.Signed-off-by Bandan Das <[email protected]>
Acked-by Zefan Li <[email protected]>
Quoted 21 lines
--- kernel/cgroup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)kernel/cgroup.c +1
-4@@ -3806,10 +3806,7 @@ static void *pidlist_allocate(int count)static void pidlist_free (void *p) { -if (is_vmalloc_addr (p)) -vfree (p); -else -kfree (p); +kvfree (p); }/*
Quoted 5 lines · Bandan Das
The wrapper already calls the appropriate free
function, use it instead of spinning our own.Signed-off-by Bandan Das <[email protected]>
Applied to cgroup/for-4.1.
Thanks.
Signature · 1 line
tejun