|
@@ -72,7 +72,7 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
|
|
|
|
|
|
static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
|
|
static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
|
|
{
|
|
{
|
|
- if(pmd_flag(*pmd) & PxD_FLAG_ATTACHED)
|
|
|
|
|
|
+ if (pmd_flag(*pmd) & PxD_FLAG_ATTACHED) {
|
|
/*
|
|
/*
|
|
* This is the permanent pmd attached to the pgd;
|
|
* This is the permanent pmd attached to the pgd;
|
|
* cannot free it.
|
|
* cannot free it.
|
|
@@ -81,6 +81,7 @@ static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
|
|
*/
|
|
*/
|
|
mm_inc_nr_pmds(mm);
|
|
mm_inc_nr_pmds(mm);
|
|
return;
|
|
return;
|
|
|
|
+ }
|
|
free_pages((unsigned long)pmd, PMD_ORDER);
|
|
free_pages((unsigned long)pmd, PMD_ORDER);
|
|
}
|
|
}
|
|
|
|
|