Commit f66418ef authored by Fang Lijun's avatar Fang Lijun Committed by Yang Yingliang
Browse files

share_pool: Export __vmalloc_node()

ascend inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI
CVE: NA

-------------------------------------------------
The reason of exporting __vmalloc_node() is that gfp_mask __GFP_ACCOUNT
is used in mbuff to limit memory usage of vmalloc() with memory cgroup.

We add a new parameter vmflags for __vmalloc_node() because VM_USERMAP and
VM_HUGE_PAGES is for vmalloc_hugepage_user().

By selecting HAVE_ARCH_HUGE_VMALLOC, vmalloc_hugepage_user() can allocate
hugepage memory. Also, vmalloc() will allocate hugepage memory if possible.
Reference: https://lwn.net/Articles/839107/



Signed-off-by: default avatarTang Yizhou <tangyizhou@huawei.com>
Signed-off-by: default avatarZhou Guanghui <zhouguanghui1@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Reviewed-by: default avatarDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent fc74d9d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment