lkml.org 
[lkml]   [2015]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cgroup: Use kvfree in pidlist_free()
On 2015/3/3 6:51, Bandan Das wrote:
>
> The wrapper already calls the appropriate free
> function, use it instead of spinning our own.
>
> Signed-off-by: Bandan Das <bsd@redhat.com>

Acked-by: Zefan Li <lizefan@huawei.com>

> ---
> kernel/cgroup.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/kernel/cgroup.c b/kernel/cgroup.c
> index 29a7b2c..c19d66d 100644
> --- a/kernel/cgroup.c
> +++ b/kernel/cgroup.c
> @@ -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);
> }
>
> /*
>



\
 
 \ /
  Last update: 2015-03-03 05:01    [W:0.195 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site