All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 017/101] mm, meminit: remove early_page_nid_uninitialised
@ 2016-07-28 22:45 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-07-28 22:45 UTC (permalink / raw)
  To: torvalds, mm-commits, akpm, mgorman

From: Mel Gorman <mgorman@techsingularity.net>
Subject: mm, meminit: remove early_page_nid_uninitialised

The helper early_page_nid_uninitialised() has been dead since commit
974a786e63c9 ("mm, page_alloc: remove MIGRATE_RESERVE") so remove the
dead code.

Link: http://lkml.kernel.org/r/1468008031-3848-2-git-send-email-mgorman@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_alloc.c |   13 -------------
 1 file changed, 13 deletions(-)

diff -puN mm/page_alloc.c~mm-meminit-remove-early_page_nid_uninitialised mm/page_alloc.c
--- a/mm/page_alloc.c~mm-meminit-remove-early_page_nid_uninitialised
+++ a/mm/page_alloc.c
@@ -295,14 +295,6 @@ static inline bool __meminit early_page_
 	return false;
 }
 
-static inline bool early_page_nid_uninitialised(unsigned long pfn, int nid)
-{
-	if (pfn >= NODE_DATA(nid)->first_deferred_pfn)
-		return true;
-
-	return false;
-}
-
 /*
  * Returns false when the remaining initialisation should be deferred until
  * later in the boot cycle when it can be parallelised.
@@ -341,11 +333,6 @@ static inline bool early_page_uninitiali
 {
 	return false;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-28 22:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-28 22:45 [patch 017/101] mm, meminit: remove early_page_nid_uninitialised akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.