diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2022-02-21 20:50:07 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2022-03-01 21:05:10 +0100 |
commit | b8e3b37900a57f9e7b32a92cb16313b32c41c0db (patch) | |
tree | 1dffe5a3b6ffd0faa15024677141ae44574bd2fb /arch/s390/mm/hugetlbpage.c | |
parent | s390/mm: add set_pte_bit()/clear_pte_bit() helper functions (diff) | |
download | linux-b8e3b37900a57f9e7b32a92cb16313b32c41c0db.tar.xz linux-b8e3b37900a57f9e7b32a92cb16313b32c41c0db.zip |
s390/mm: use set_pXd()/set_pte() helper functions everywhere
Use the new set_pXd()/set_pte() helper functions at all places where
page table entries are modified.
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/mm/hugetlbpage.c')
-rw-r--r-- | arch/s390/mm/hugetlbpage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/mm/hugetlbpage.c b/arch/s390/mm/hugetlbpage.c index 082793d497ec..082b72d29bb5 100644 --- a/arch/s390/mm/hugetlbpage.c +++ b/arch/s390/mm/hugetlbpage.c @@ -168,7 +168,7 @@ void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, rste |= _SEGMENT_ENTRY_LARGE; clear_huge_pte_skeys(mm, rste); - pte_val(*ptep) = rste; + set_pte(ptep, __pte(rste)); } pte_t huge_ptep_get(pte_t *ptep) |