diff options
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/pgtable_32.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/mm/pgtable_32.c b/arch/x86/mm/pgtable_32.c index c7db504be1ea..6c1914622a88 100644 --- a/arch/x86/mm/pgtable_32.c +++ b/arch/x86/mm/pgtable_32.c | |||
@@ -272,7 +272,7 @@ static void pgd_dtor(void *pgd) | |||
272 | * preallocate which never got a corresponding vma will need to be | 272 | * preallocate which never got a corresponding vma will need to be |
273 | * freed manually. | 273 | * freed manually. |
274 | */ | 274 | */ |
275 | static void pgd_mop_up_pmds(pgd_t *pgdp) | 275 | static void pgd_mop_up_pmds(struct mm_struct *mm, pgd_t *pgdp) |
276 | { | 276 | { |
277 | int i; | 277 | int i; |
278 | 278 | ||
@@ -285,7 +285,7 @@ static void pgd_mop_up_pmds(pgd_t *pgdp) | |||
285 | pgdp[i] = native_make_pgd(0); | 285 | pgdp[i] = native_make_pgd(0); |
286 | 286 | ||
287 | paravirt_release_pd(pgd_val(pgd) >> PAGE_SHIFT); | 287 | paravirt_release_pd(pgd_val(pgd) >> PAGE_SHIFT); |
288 | pmd_free(pmd); | 288 | pmd_free(mm, pmd); |
289 | } | 289 | } |
290 | } | 290 | } |
291 | } | 291 | } |
@@ -313,7 +313,7 @@ static int pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd) | |||
313 | pmd_t *pmd = pmd_alloc_one(mm, addr); | 313 | pmd_t *pmd = pmd_alloc_one(mm, addr); |
314 | 314 | ||
315 | if (!pmd) { | 315 | if (!pmd) { |
316 | pgd_mop_up_pmds(pgd); | 316 | pgd_mop_up_pmds(mm, pgd); |
317 | return 0; | 317 | return 0; |
318 | } | 318 | } |
319 | 319 | ||
@@ -333,7 +333,7 @@ static int pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd) | |||
333 | return 1; | 333 | return 1; |
334 | } | 334 | } |
335 | 335 | ||
336 | static void pgd_mop_up_pmds(pgd_t *pgd) | 336 | static void pgd_mop_up_pmds(struct mm_struct *mm, pgd_t *pgdp) |
337 | { | 337 | { |
338 | } | 338 | } |
339 | #endif /* CONFIG_X86_PAE */ | 339 | #endif /* CONFIG_X86_PAE */ |
@@ -352,9 +352,9 @@ pgd_t *pgd_alloc(struct mm_struct *mm) | |||
352 | return pgd; | 352 | return pgd; |
353 | } | 353 | } |
354 | 354 | ||
355 | void pgd_free(pgd_t *pgd) | 355 | void pgd_free(struct mm_struct *mm, pgd_t *pgd) |
356 | { | 356 | { |
357 | pgd_mop_up_pmds(pgd); | 357 | pgd_mop_up_pmds(mm, pgd); |
358 | quicklist_free(0, pgd_dtor, pgd); | 358 | quicklist_free(0, pgd_dtor, pgd); |
359 | } | 359 | } |
360 | 360 | ||