mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
mm: remove unused savedwrite infrastructure
NUMA hinting no longer uses savedwrite, let's rip it out. ... and while at it, drop __pte_write() and __pmd_write() on ppc64. Link: https://lkml.kernel.org/r/20221108174652.198904-7-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Dave Chinner <david@fromorbit.com> Cc: Hugh Dickins <hughd@google.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Mike Rapoport <rppt@kernel.org> Cc: Nadav Amit <namit@vmware.com> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Peter Xu <peterx@redhat.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
6a56ccbcf6
commit
d6379159f4
@@ -503,30 +503,6 @@ static inline pte_t pte_sw_mkyoung(pte_t pte)
|
||||
#define pte_sw_mkyoung pte_sw_mkyoung
|
||||
#endif
|
||||
|
||||
#ifndef pte_savedwrite
|
||||
#define pte_savedwrite pte_write
|
||||
#endif
|
||||
|
||||
#ifndef pte_mk_savedwrite
|
||||
#define pte_mk_savedwrite pte_mkwrite
|
||||
#endif
|
||||
|
||||
#ifndef pte_clear_savedwrite
|
||||
#define pte_clear_savedwrite pte_wrprotect
|
||||
#endif
|
||||
|
||||
#ifndef pmd_savedwrite
|
||||
#define pmd_savedwrite pmd_write
|
||||
#endif
|
||||
|
||||
#ifndef pmd_mk_savedwrite
|
||||
#define pmd_mk_savedwrite pmd_mkwrite
|
||||
#endif
|
||||
|
||||
#ifndef pmd_clear_savedwrite
|
||||
#define pmd_clear_savedwrite pmd_wrprotect
|
||||
#endif
|
||||
|
||||
#ifndef __HAVE_ARCH_PMDP_SET_WRPROTECT
|
||||
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
|
||||
static inline void pmdp_set_wrprotect(struct mm_struct *mm,
|
||||
|
||||
Reference in New Issue
Block a user