Skip to contentSkip to conversation

mm-remove-config_arch_has_hugepd.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 12, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: remove CONFIG_ARCH_HAS_HUGEPD
has been removed from the -mm tree. Its filename was
mm-remove-config_arch_has_hugepd.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: Christophe Leroy <[email protected]>
Subject: mm: remove CONFIG_ARCH_HAS_HUGEPD
Date: Tue, 2 Jul 2024 15:51:35 +0200

powerpc was the only user of CONFIG_ARCH_HAS_HUGEPD and doesn't use it anymore, so remove all related code.

---

 include/linux/hugetlb.h |    6 -
 mm/Kconfig              |   10 -
 mm/gup.c                |  194 --------------------------------------
 mm/pagewalk.c           |   57 -----------
 4 files changed, 9 insertions(+), 258 deletions(-)
include/linux/hugetlb.h renamed from include/linux/hugetlb.h~mm-remove-config_arch_has_hugepd +0 -6
@@ -20,12 +20,6 @@ struct user_struct;
 struct mmu_gather;
 struct node;
 
-#ifndef CONFIG_ARCH_HAS_HUGEPD
-typedef struct { unsigned long pd; } hugepd_t;
-#define is_hugepd(hugepd) (0)
-#define __hugepd(x) ((hugepd_t) { (x) })
-#endif
-
 void free_huge_folio(struct folio *folio);
 
 #ifdef CONFIG_HUGETLB_PAGE
mm/gup.c renamed from mm/gup.c~mm-remove-config_arch_has_hugepd +5 -189

254 lines not on this page · raw message

mm/Kconfig renamed from mm/Kconfig~mm-remove-config_arch_has_hugepd +0 -10
@@ -1126,16 +1126,6 @@ config DMAPOOL_TEST
 config ARCH_HAS_PTE_SPECIAL
 	bool
 
-#
-# Some architectures require a special hugepage directory format that is
-# required to support multiple hugepage sizes. For example a4fe3ce76
-# "powerpc/mm: Allow more flexible layouts for hugepage pagetables"
-# introduced it on powerpc.  This allows for a more flexible hugepage
-# pagetable layouts.
-#
-config ARCH_HAS_HUGEPD
-	bool
-
 config MAPPING_DIRTY_HELPERS
         bool
 
mm/pagewalk.c renamed from mm/pagewalk.c~mm-remove-config_arch_has_hugepd +4 -53

87 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are