Skip to content
Snippets Groups Projects
Commit 70f73eea authored by Huang Pei's avatar Huang Pei Committed by Greg Kroah-Hartman
Browse files

Revert "MIPS: add PMD table accounting into MIPS'pmd_alloc_one"


This reverts commit 920a42d8 which is
commit commit ed914d48 upstream.

Commit b2b29d6d (mm: account PMD tables like PTE tables) is
introduced between v5.9 and v5.10, so this fix (commit 002d8b39)
should NOT apply to any pre-5.10 branch.

Signed-off-by: default avatarHuang Pei <huangpei@loongson.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 75d02bce
No related merge requests found
......@@ -93,15 +93,11 @@ do { \
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
{
pmd_t *pmd = NULL;
struct page *pg;
pmd_t *pmd;
pg = alloc_pages(GFP_KERNEL | __GFP_ACCOUNT, PMD_ORDER);
if (pg) {
pgtable_pmd_page_ctor(pg);
pmd = (pmd_t *)page_address(pg);
pmd = (pmd_t *) __get_free_pages(GFP_KERNEL, PMD_ORDER);
if (pmd)
pmd_init((unsigned long)pmd, (unsigned long)invalid_pte_table);
}
return pmd;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment