Re: [PATCH RFC v2 06/19] Add a vmalloc_node_user function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 31, 2024 at 06:56:01AM -0700, Christoph Hellwig wrote:
> >  void *vmalloc_user(unsigned long size)
> >  {
> > -	return __vmalloc_node_range(size, SHMLBA,  VMALLOC_START, VMALLOC_END,
> > -				    GFP_KERNEL | __GFP_ZERO, PAGE_KERNEL,
> > -				    VM_USERMAP, NUMA_NO_NODE,
> > -				    __builtin_return_address(0));
> > +	return _vmalloc_node_user(size, NUMA_NO_NODE);
> 
> But I suspect simply adding a gfp_t argument to vmalloc_node might be
> a much easier to use interface here, even if it would need a sanity
> check to only allow for actually useful to vmalloc flags.

vmalloc doesn't properly support gfp flags due to page table allocation




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux