diff options
Diffstat (limited to 'arch/s390/include/asm/pgtable.h')
| -rw-r--r-- | arch/s390/include/asm/pgtable.h | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index dce708e061ea..d7fe9838084d 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */  /*   *  S390 version   *    Copyright IBM Corp. 1999, 2000 @@ -1507,7 +1508,9 @@ static inline pmd_t pmdp_huge_clear_flush(struct vm_area_struct *vma,  static inline void pmdp_invalidate(struct vm_area_struct *vma,  				   unsigned long addr, pmd_t *pmdp)  { -	pmdp_xchg_direct(vma->vm_mm, addr, pmdp, __pmd(_SEGMENT_ENTRY_EMPTY)); +	pmd_t pmd = __pmd(pmd_val(*pmdp) | _SEGMENT_ENTRY_INVALID); + +	pmdp_xchg_direct(vma->vm_mm, addr, pmdp, pmd);  }  #define __HAVE_ARCH_PMDP_SET_WRPROTECT |