diff options
Diffstat (limited to 'include/asm-s390/pgalloc.h')
-rw-r--r-- | include/asm-s390/pgalloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-s390/pgalloc.h b/include/asm-s390/pgalloc.h index 803bc7064418..28619de5ecae 100644 --- a/include/asm-s390/pgalloc.h +++ b/include/asm-s390/pgalloc.h | |||
@@ -116,7 +116,7 @@ pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) | |||
116 | static inline void | 116 | static inline void |
117 | pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *page) | 117 | pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *page) |
118 | { | 118 | { |
119 | pmd_populate_kernel(mm, pmd, (pte_t *)((page-mem_map) << PAGE_SHIFT)); | 119 | pmd_populate_kernel(mm, pmd, (pte_t *)page_to_phys(page)); |
120 | } | 120 | } |
121 | 121 | ||
122 | /* | 122 | /* |