Re: [PATCH] fs: use kmalloc() to allocate fdmem if possible

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jiri Slaby
Date: Monday, May 3, 2010 - 2:03 am

On 05/03/2010 10:49 AM, Avi Kivity wrote:

But it won't work well for vmalloc_to_{page,pfn} and similar. Some code
may expect vmalloc result to be in the vmalloc area and page-aligned
(both in position and size).

Not that it won't be possible to inspect the callers, but in my eyes it
would definitely be better to introduce kmalloc_or_vmalloc-alike where
the caller explicitly doesn't care about the resulting position and size.

regards,
-- 
js
suse labs
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] fs: use kmalloc() to allocate fdmem if possible, Jiri Slaby, (Mon May 3, 2:03 am)