diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-10-24 10:52:29 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-10-27 13:27:30 +0100 |
commit | fcbe08d66f57c368e77ca729dd01e6b539ffb3ff (patch) | |
tree | 202c07aac6f67b5b34372da6f80cf9baa773e307 /mm/huge_memory.c | |
parent | 6972cae523de728ad5e8dae01da4a631d98b874c (diff) | |
download | linux-fcbe08d66f57c368e77ca729dd01e6b539ffb3ff.tar.gz linux-fcbe08d66f57c368e77ca729dd01e6b539ffb3ff.tar.bz2 linux-fcbe08d66f57c368e77ca729dd01e6b539ffb3ff.zip |
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/huge_memory.c')
-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, * pgtable_trans_huge_withdraw after finishing pmdp related * operations. */ - orig_pmd = pmdp_get_and_clear(tlb->mm, addr, pmd); + orig_pmd = pmdp_get_and_clear_full(tlb->mm, addr, pmd, + tlb->fullmm); tlb_remove_pmd_tlb_entry(tlb, pmd, addr); pgtable = pgtable_trans_huge_withdraw(tlb->mm, pmd); if (is_huge_zero_pmd(orig_pmd)) { |