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

From: Lai Jiangshan
Date: Mon Nov 17 2008 - 19:31:51 EST


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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/