[PATCH] uml: fix x86_64 page leak
We were leaking pmd pages when 3_LEVEL_PGTABLES was enabled. This fixes that. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f9dfefe423
commit
7ef9390541
@ -69,14 +69,11 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
|
||||
return pmd;
|
||||
}
|
||||
|
||||
static inline void pmd_free(pmd_t *pmd){
|
||||
free_page((unsigned long) pmd);
|
||||
extern inline void pud_clear (pud_t *pud)
|
||||
{
|
||||
set_pud(pud, __pud(0));
|
||||
}
|
||||
|
||||
#define __pmd_free_tlb(tlb,x) do { } while (0)
|
||||
|
||||
static inline void pud_clear (pud_t * pud) { }
|
||||
|
||||
#define pud_page(pud) \
|
||||
((struct page *) __va(pud_val(pud) & PAGE_MASK))
|
||||
|
||||
|
Reference in New Issue
Block a user