mm-x86-replace-pgd_large-with-pgd_leaf.patch removed from -mm tree
The quilt patch titled
Subject: mm/x86: replace pgd_large() with pgd_leaf()
has been removed from the -mm tree. Its filename was
mm-x86-replace-pgd_large-with-pgd_leaf.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Peter Xu <[email protected]>
Subject: mm/x86: replace pgd_large() with pgd_leaf()
Date: Tue, 5 Mar 2024 12:37:44 +0800
pgd_leaf() is a global API while pgd_large() is not. Always use the global pgd_leaf(), then drop pgd_large().
Signed-off-by Peter Xu <[email protected]>
Reviewed-by Jason Gunthorpe <[email protected]>
Reviewed-by Mike Rapoport (IBM) <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Alexander Potapenko <[email protected]>
Cc Andrey Konovalov <[email protected]>
Cc Andrey Ryabinin <[email protected]>
Cc "Aneesh Kumar K.V" <[email protected]>
Cc Christophe Leroy <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Muchun Song <[email protected]>
Cc "Naveen N. Rao" <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Vincenzo Frascino <[email protected]>
Cc Yang Shi <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/x86/include/asm/pgtable.h | 4 ++-- arch/x86/mm/pti.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/include/asm/pgtable.h renamed from arch/x86/include/asm/pgtable.h~mm-x86-replace-pgd_large-with-pgd_leaf +2 -2
@@ -1418,8 +1418,8 @@ static inline bool pgdp_maps_userspace(vreturn (((ptr & ~PAGE_MASK ) /sizeof (pgd_t)) <PGD_KERNEL_START ); } -#define pgd_leaf pgd_large -static inline int pgd_large (pgd_t pgd) {return 0 ; } +#define pgd_leaf pgd_leaf +static inline int pgd_leaf (pgd_t pgd) {return 0 ; }#ifdef CONFIG_PAGE_TABLE_ISOLATION /*
arch/x86/mm/pti.c renamed from arch/x86/mm/pti.c~mm-x86-replace-pgd_large-with-pgd_leaf +1 -1
@@ -185,7 +185,7 @@ static p4d_t *pti_user_pagetable_walk_p4set_pgd (pgd,__pgd (_KERNPG_TABLE |__pa (new_p4d_page))); } -BUILD_BUG_ON (pgd_large (*pgd) !=0 ); +BUILD_BUG_ON (pgd_leaf (*pgd) !=0 );return p4d_offset (pgd, address); }
_
Patches currently in -mm which might be from [email protected] are