mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
Revert "MIPS: add PMD table accounting into MIPS'pmd_alloc_one"
This reverts commit920a42d8b8
which is commit commited914d48b6
upstream. Commitb2b29d6d01
(mm: account PMD tables like PTE tables) is introduced between v5.9 and v5.10, so this fix (commit002d8b395f
) should NOT apply to any pre-5.10 branch. Signed-off-by: Huang Pei <huangpei@loongson.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
75d02bceb2
commit
70f73eea5a
1 changed files with 3 additions and 7 deletions
|
@ -93,15 +93,11 @@ do { \
|
||||||
|
|
||||||
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
|
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
|
||||||
{
|
{
|
||||||
pmd_t *pmd = NULL;
|
pmd_t *pmd;
|
||||||
struct page *pg;
|
|
||||||
|
|
||||||
pg = alloc_pages(GFP_KERNEL | __GFP_ACCOUNT, PMD_ORDER);
|
pmd = (pmd_t *) __get_free_pages(GFP_KERNEL, PMD_ORDER);
|
||||||
if (pg) {
|
if (pmd)
|
||||||
pgtable_pmd_page_ctor(pg);
|
|
||||||
pmd = (pmd_t *)page_address(pg);
|
|
||||||
pmd_init((unsigned long)pmd, (unsigned long)invalid_pte_table);
|
pmd_init((unsigned long)pmd, (unsigned long)invalid_pte_table);
|
||||||
}
|
|
||||||
return pmd;
|
return pmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue