Skip to contentSkip to conversation

+ mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Sep 26, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 25 Sep 2013 18:08:20 -0700

The patch titled
Subject: mm: thp: cleanup: mv alloc_hugepage to better place
has been added to the -mm tree. Its filename is
mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Bob Liu <[email protected]>
Subject: mm: thp: cleanup: mv alloc_hugepage to better place

Move alloc_hugepage() to a better place, no need for a seperate #ifndef CONFIG_NUMA

---

 mm/huge_memory.c |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-thp-cleanup-mv-alloc_hugepage-to-better-place +0 -7
diff -puN mm/huge_memory.c~mm-thp-cleanup-mv-alloc_hugepage-to-better-place mm/huge_memory.c
@@ -759,14 +759,6 @@ static inline struct page *alloc_hugepag
 			       HPAGE_PMD_ORDER, vma, haddr, nd);
 }
 
-#ifndef CONFIG_NUMA
-static inline struct page *alloc_hugepage(int defrag)
-{
-	return alloc_pages(alloc_hugepage_gfpmask(defrag, 0),
-			   HPAGE_PMD_ORDER);
-}
-#endif