summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2014-10-24 10:52:29 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-10-27 13:27:30 +0100
commitfcbe08d66f57c368e77ca729dd01e6b539ffb3ff (patch)
tree202c07aac6f67b5b34372da6f80cf9baa773e307 /mm
parent6972cae523de728ad5e8dae01da4a631d98b874c (diff)
downloadop-kernel-dev-fcbe08d66f57c368e77ca729dd01e6b539ffb3ff.zip
op-kernel-dev-fcbe08d66f57c368e77ca729dd01e6b539ffb3ff.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 7e9c15c..6a37f1b 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)) {
OpenPOWER on IntegriCloud