Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1730965 > unrolled thread

[PATCHv3 07/11] s390/mm: Modify pmdp_invalidate to return old value.

Started by"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
First post2017-09-12 17:50 +0200
Last post2017-09-12 17:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCHv3 07/11] s390/mm: Modify pmdp_invalidate to return old value. "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2017-09-12 17:50 +0200

#1730965 — [PATCHv3 07/11] s390/mm: Modify pmdp_invalidate to return old value.

From"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Date2017-09-12 17:50 +0200
Subject[PATCHv3 07/11] s390/mm: Modify pmdp_invalidate to return old value.
Message-ID<uoVBN-37Z-53@gated-at.bofh.it>
From: Martin Schwidefsky <schwidefsky@de.ibm.com>

It's required to avoid loosing dirty and accessed bits.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
---
 arch/s390/include/asm/pgtable.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h
index dce708e061ea..d3de8ddc55ec 100644
--- a/arch/s390/include/asm/pgtable.h
+++ b/arch/s390/include/asm/pgtable.h
@@ -1504,10 +1504,11 @@ static inline pmd_t pmdp_huge_clear_flush(struct vm_area_struct *vma,
 }
 
 #define __HAVE_ARCH_PMDP_INVALIDATE
-static inline void pmdp_invalidate(struct vm_area_struct *vma,
+static inline pmd_t 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));
+	return pmdp_xchg_direct(vma->vm_mm, addr, pmdp,
+			__pmd(_SEGMENT_ENTRY_EMPTY));
 }
 
 #define __HAVE_ARCH_PMDP_SET_WRPROTECT
-- 
2.14.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web