Re: [PATCH 25/28] mm: remove vmalloc_user_node_flags

From: Christoph Hellwig
Date: Thu Apr 09 2020 - 02:09:20 EST


On Thu, Apr 09, 2020 at 12:06:45PM +0800, Hillf Danton wrote:
> > - const gfp_t flags = __GFP_NOWARN | __GFP_ZERO;
> > + const gfp_t gfp = __GFP_NOWARN | __GFP_ZERO;

> > +
> > + return __vmalloc_node_range(size, align, VMALLOC_START, VMALLOC_END,
> > + gfp | GFP_KERNEL | __GFP_RETRY_MAYFAIL, PAGE_KERNEL,
>
> Dunno if __GFP_ZERO needs to be added to match the current
> vmalloc_user_node_flags().

__GFP_ZERO is already included in "gfp".