Skip to content

Commit 9c4563f

Browse files
Martin Schwidefskytorvalds
authored andcommitted
s390/mm: modify pmdp_invalidate to return old value.
It's required to avoid losing dirty and accessed bits. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Martin Schwidefsky <[email protected]> Signed-off-by: Kirill A. Shutemov <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8cc931e commit 9c4563f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/s390/include/asm/pgtable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,12 +1505,12 @@ static inline pmd_t pmdp_huge_clear_flush(struct vm_area_struct *vma,
15051505
}
15061506

15071507
#define __HAVE_ARCH_PMDP_INVALIDATE
1508-
static inline void pmdp_invalidate(struct vm_area_struct *vma,
1508+
static inline pmd_t pmdp_invalidate(struct vm_area_struct *vma,
15091509
unsigned long addr, pmd_t *pmdp)
15101510
{
15111511
pmd_t pmd = __pmd(pmd_val(*pmdp) | _SEGMENT_ENTRY_INVALID);
15121512

1513-
pmdp_xchg_direct(vma->vm_mm, addr, pmdp, pmd);
1513+
return pmdp_xchg_direct(vma->vm_mm, addr, pmdp, pmd);
15141514
}
15151515

15161516
#define __HAVE_ARCH_PMDP_SET_WRPROTECT

0 commit comments

Comments
 (0)