diff options
Diffstat (limited to 'arch/s390/include/asm/pgalloc.h')
-rw-r--r-- | arch/s390/include/asm/pgalloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/include/asm/pgalloc.h b/arch/s390/include/asm/pgalloc.h index f0f9bcf94c03..5ee733720a57 100644 --- a/arch/s390/include/asm/pgalloc.h +++ b/arch/s390/include/asm/pgalloc.h | |||
@@ -36,11 +36,11 @@ static inline void crst_table_init(unsigned long *crst, unsigned long entry) | |||
36 | 36 | ||
37 | static inline unsigned long pgd_entry_type(struct mm_struct *mm) | 37 | static inline unsigned long pgd_entry_type(struct mm_struct *mm) |
38 | { | 38 | { |
39 | if (mm->context.asce_limit <= _REGION3_SIZE) | 39 | if (mm_pmd_folded(mm)) |
40 | return _SEGMENT_ENTRY_EMPTY; | 40 | return _SEGMENT_ENTRY_EMPTY; |
41 | if (mm->context.asce_limit <= _REGION2_SIZE) | 41 | if (mm_pud_folded(mm)) |
42 | return _REGION3_ENTRY_EMPTY; | 42 | return _REGION3_ENTRY_EMPTY; |
43 | if (mm->context.asce_limit <= _REGION1_SIZE) | 43 | if (mm_p4d_folded(mm)) |
44 | return _REGION2_ENTRY_EMPTY; | 44 | return _REGION2_ENTRY_EMPTY; |
45 | return _REGION1_ENTRY_EMPTY; | 45 | return _REGION1_ENTRY_EMPTY; |
46 | } | 46 | } |