diff options
| author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-10-24 04:52:29 -0400 |
|---|---|---|
| committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-10-27 08:27:30 -0400 |
| commit | fcbe08d66f57c368e77ca729dd01e6b539ffb3ff (patch) | |
| tree | 202c07aac6f67b5b34372da6f80cf9baa773e307 /mm | |
| parent | 6972cae523de728ad5e8dae01da4a631d98b874c (diff) | |
s390/mm: pmdp_get_and_clear_full optimization
Analog to ptep_get_and_clear_full define a variant of the
pmpd_get_and_clear primitive which gets the full hint from the
mmu_gather struct. This allows s390 to avoid a costly instruction
when destroying an address space.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/huge_memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 7e9c15cb93a9..6a37f1b2ed1e 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c | |||
| @@ -1400,7 +1400,8 @@ int zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, | |||
| 1400 | * pgtable_trans_huge_withdraw after finishing pmdp related | 1400 | * pgtable_trans_huge_withdraw after finishing pmdp related |
| 1401 | * operations. | 1401 | * operations. |
| 1402 | */ | 1402 | */ |
| 1403 | orig_pmd = pmdp_get_and_clear(tlb->mm, addr, pmd); | 1403 | orig_pmd = pmdp_get_and_clear_full(tlb->mm, addr, pmd, |
| 1404 | tlb->fullmm); | ||
| 1404 | tlb_remove_pmd_tlb_entry(tlb, pmd, addr); | 1405 | tlb_remove_pmd_tlb_entry(tlb, pmd, addr); |
| 1405 | pgtable = pgtable_trans_huge_withdraw(tlb->mm, pmd); | 1406 | pgtable = pgtable_trans_huge_withdraw(tlb->mm, pmd); |
| 1406 | if (is_huge_zero_pmd(orig_pmd)) { | 1407 | if (is_huge_zero_pmd(orig_pmd)) { |
