You need to sign in or sign up before continuing.
提交 7d9032b0 编写于 作者: L Liu Shixin 提交者: Yongqiang Liu

dhugetlb: set hpool to NULL for cont-bit hugepage

hulk inclusion
category: bugfix
bugzilla: 46904, https://gitee.com/openeuler/kernel/issues/I6FCQZ
CVE: NA

--------------------------------

When dynamic hugetlb is enabled, the hpool should be NULL for cont-bit
hugepage, set it.

Fixes: f15774c6 ("dhugetlb: only support 1G/2M hugepage and ARM64_4K_PAGES")
Signed-off-by: NLiu Shixin <liushixin2@huawei.com>
Reviewed-by: NNanyong Sun <sunnanyong@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NYongqiang Liu <liuyongqiang13@huawei.com>
上级 062d5379
...@@ -1183,6 +1183,8 @@ static struct inode *hugetlbfs_alloc_inode(struct super_block *sb) ...@@ -1183,6 +1183,8 @@ static struct inode *hugetlbfs_alloc_inode(struct super_block *sb)
if (huge_page_size(sbinfo->hstate) == PMD_SIZE || if (huge_page_size(sbinfo->hstate) == PMD_SIZE ||
huge_page_size(sbinfo->hstate) == PUD_SIZE) huge_page_size(sbinfo->hstate) == PUD_SIZE)
p->hpool = get_dhugetlb_pool_from_task(current); p->hpool = get_dhugetlb_pool_from_task(current);
else
p->hpool = NULL;
#endif #endif
return &p->vfs_inode; return &p->vfs_inode;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册