aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/mm
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2014-02-12 08:16:18 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-02-21 02:50:22 -0500
commitec66ad66a0de87866be347b5ecc83bd46427f53b (patch)
tree5b11472a765b1da2ccd67ceb5f51cf53c46369e7 /arch/s390/mm
parent634391ace193d00c59a691e9fc227b0f8942bad7 (diff)
s390/mm: enable split page table lock for PMD level
Add the pgtable_pmd_page_ctor/pgtable_pmd_page_dtor calls to the pmd allocation and free functions and enable ARCH_ENABLE_SPLIT_PMD_PTLOCK for 64 bit. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r--arch/s390/mm/pgtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c
index 9c26b7aa96d9..f8b58a7a3048 100644
--- a/arch/s390/mm/pgtable.c
+++ b/arch/s390/mm/pgtable.c
@@ -1397,7 +1397,7 @@ void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp,
1397{ 1397{
1398 struct list_head *lh = (struct list_head *) pgtable; 1398 struct list_head *lh = (struct list_head *) pgtable;
1399 1399
1400 assert_spin_locked(&mm->page_table_lock); 1400 assert_spin_locked(pmd_lockptr(mm, pmdp));
1401 1401
1402 /* FIFO */ 1402 /* FIFO */
1403 if (!pmd_huge_pte(mm, pmdp)) 1403 if (!pmd_huge_pte(mm, pmdp))
@@ -1413,7 +1413,7 @@ pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp)
1413 pgtable_t pgtable; 1413 pgtable_t pgtable;
1414 pte_t *ptep; 1414 pte_t *ptep;
1415 1415
1416 assert_spin_locked(&mm->page_table_lock); 1416 assert_spin_locked(pmd_lockptr(mm, pmdp));
1417 1417
1418 /* FIFO */ 1418 /* FIFO */
1419 pgtable = pmd_huge_pte(mm, pmdp); 1419 pgtable = pmd_huge_pte(mm, pmdp);