All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20170404082302.GE15132@dhcp22.suse.cz>

diff --git a/a/1.txt b/N1/1.txt
index 66485bb..c9400de 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -33,52 +33,4 @@ necessary. I suspect that memblock do not span more nodes and all this
 is just-in-case code (e.g. the onlining code assumes a single zone aka
 node. But let's do that later.
 
----
->From fd2e3b6eca1cf7766527203d23db6aca5957a3f1 Mon Sep 17 00:00:00 2001
-From: Michal Hocko <mhocko@suse.com>
-Date: Tue, 4 Apr 2017 10:05:06 +0200
-Subject: [PATCH] mm: drop page_initialized check from get_nid_for_pfn
-
-c04fc586c1a4 ("mm: show node to memory section relationship with
-symlinks in sysfs") has added means to export memblock<->node
-association into the sysfs. It has also introduced get_nid_for_pfn
-which is a rather confusing counterpart of pfn_to_nid which checks also
-whether the pfn page is already initialized (page_initialized).  This
-is done by checking page::lru != NULL which doesn't make any sense at
-all. Nothing in this path really relies on the lru list being used or
-initialized. Just remove it
-
-Signed-off-by: Michal Hocko <mhocko@suse.com>
----
- drivers/base/node.c | 5 -----
- 1 file changed, 5 deletions(-)
-
-diff --git a/drivers/base/node.c b/drivers/base/node.c
-index 5548f9686016..ee080a35e869 100644
---- a/drivers/base/node.c
-+++ b/drivers/base/node.c
-@@ -368,8 +368,6 @@ int unregister_cpu_under_node(unsigned int cpu, unsigned int nid)
- }
- 
- #ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
--#define page_initialized(page)  (page->lru.next)
--
- static int __ref get_nid_for_pfn(unsigned long pfn)
- {
- 	struct page *page;
-@@ -380,9 +378,6 @@ static int __ref get_nid_for_pfn(unsigned long pfn)
- 	if (system_state == SYSTEM_BOOTING)
- 		return early_pfn_to_nid(pfn);
- #endif
--	page = pfn_to_page(pfn);
--	if (!page_initialized(page))
--		return -1;
- 	return pfn_to_nid(pfn);
- }
- 
--- 
-2.11.0
-
--- 
-Michal Hocko
-SUSE Labs
\ No newline at end of file
+---
\ No newline at end of file
diff --git a/a/content_digest b/N1/content_digest
index 787eb49..7bebee7 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -98,55 +98,7 @@
   "is just-in-case code (e.g. the onlining code assumes a single zone aka\n",
   "node. But let's do that later.\n",
   "\n",
-  "---\n",
-  ">From fd2e3b6eca1cf7766527203d23db6aca5957a3f1 Mon Sep 17 00:00:00 2001\n",
-  "From: Michal Hocko <mhocko\@suse.com>\n",
-  "Date: Tue, 4 Apr 2017 10:05:06 +0200\n",
-  "Subject: [PATCH] mm: drop page_initialized check from get_nid_for_pfn\n",
-  "\n",
-  "c04fc586c1a4 (\"mm: show node to memory section relationship with\n",
-  "symlinks in sysfs\") has added means to export memblock<->node\n",
-  "association into the sysfs. It has also introduced get_nid_for_pfn\n",
-  "which is a rather confusing counterpart of pfn_to_nid which checks also\n",
-  "whether the pfn page is already initialized (page_initialized).  This\n",
-  "is done by checking page::lru != NULL which doesn't make any sense at\n",
-  "all. Nothing in this path really relies on the lru list being used or\n",
-  "initialized. Just remove it\n",
-  "\n",
-  "Signed-off-by: Michal Hocko <mhocko\@suse.com>\n",
-  "---\n",
-  " drivers/base/node.c | 5 -----\n",
-  " 1 file changed, 5 deletions(-)\n",
-  "\n",
-  "diff --git a/drivers/base/node.c b/drivers/base/node.c\n",
-  "index 5548f9686016..ee080a35e869 100644\n",
-  "--- a/drivers/base/node.c\n",
-  "+++ b/drivers/base/node.c\n",
-  "\@\@ -368,8 +368,6 \@\@ int unregister_cpu_under_node(unsigned int cpu, unsigned int nid)\n",
-  " }\n",
-  " \n",
-  " #ifdef CONFIG_MEMORY_HOTPLUG_SPARSE\n",
-  "-#define page_initialized(page)  (page->lru.next)\n",
-  "-\n",
-  " static int __ref get_nid_for_pfn(unsigned long pfn)\n",
-  " {\n",
-  " \tstruct page *page;\n",
-  "\@\@ -380,9 +378,6 \@\@ static int __ref get_nid_for_pfn(unsigned long pfn)\n",
-  " \tif (system_state == SYSTEM_BOOTING)\n",
-  " \t\treturn early_pfn_to_nid(pfn);\n",
-  " #endif\n",
-  "-\tpage = pfn_to_page(pfn);\n",
-  "-\tif (!page_initialized(page))\n",
-  "-\t\treturn -1;\n",
-  " \treturn pfn_to_nid(pfn);\n",
-  " }\n",
-  " \n",
-  "-- \n",
-  "2.11.0\n",
-  "\n",
-  "-- \n",
-  "Michal Hocko\n",
-  "SUSE Labs"
+  "---"
 ]
 
-a6dc1d68765c5ed9b6667d7b1e1248b1645e35c2224c9b9f6adc45fc13b0e200
+4fecf9e9405f9bfb9658151c34d18712fd5d87bff975309362aa5e7f45a0968b

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.