Re: [PATCH V2 1/1] mm: introduce kvmalloc()/kvfree()

Lai Jiangshan
2008-11-18T00:31:51Z

Johannes Weiner wrote:
> Hi Lai,
>
> On Mon, Nov 17, 2008 at 08:26:12PM +0800, Lai Jiangshan wrote:
>> +/**
>> + * kvfree - free the memory by kfree(), or vfree() if it is vmalloc addr
>
> Could that be just `free the memory allocated by kvmalloc()'?
>
> Hannes
>
>
>

We don't and we won't introduce another allocator, kvmalloc() is
a wrapper of kmalloc() and vmalloc(), and kvfree() is a wrapper
of kfree() and vfree()

Lai.