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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to