svn commit: r327676 - head/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hps at selasky.org
Fri Jan 19 12:14:39 UTC 2018
On 01/07/18 20:07, Rodney W. Grimes wrote:
>> -static inline void *
>> -kcalloc(size_t n, size_t size, gfp_t flags)
>> -{
>> - flags |= __GFP_ZERO;
>> - return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags)));
>> -}
>> -
>> static inline void *
>> __vmalloc(size_t size, gfp_t flags, int other)
>> {
>>
>> Regards,
>> Kristof
>
> Should probably revert and go through review,
> I would at least wait for comments from others.
>
Hi,
I think the current version is fine. The compiler should take care of
the inlining so that it doesn't consume additional stack.
Else create a review as suggested.
BTW: I need mallocarray() MFC'ed to 11-stable, but only the kernel
parts. I'm handling the MFC of the LinuxKPI parts.
--HPS
More information about the svn-src-head
mailing list