Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1545387

[PATCH 1/2] mm/sparse: use page_private() to get page->private value

From Yasuaki Ishimatsu <yasu.isimatu@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] mm/sparse: use page_private() to get page->private value
Date 2016-12-20 20:20 +0100
Message-ID <sQy77-1ef-15@gated-at.bofh.it> (permalink)
References <sQy77-1ef-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


free_map_bootmem() uses page->private directly to set
removing_section_nr argument. But to get page->private
value, page_private() has been prepared.

So free_map_bootmem() should use page_private() instead of
page->private.

Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
---
  mm/sparse.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/sparse.c b/mm/sparse.c
index 1e168bf..c62b366 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -667,7 +667,7 @@ static void free_map_bootmem(struct page *memmap)
  		BUG_ON(magic == NODE_INFO);

  		maps_section_nr = pfn_to_section_nr(page_to_pfn(page));
-		removing_section_nr = page->private;
+		removing_section_nr = page_private()

  		/*
  		 * When this function is called, the removing section is
-- 
1.8.3.1

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[Patch 0/2] mm/memory_hotplug: fix hot remove bug Yasuaki Ishimatsu <yasu.isimatu@gmail.com> - 2016-12-20 20:20 +0100
  [PATCH 1/2] mm/sparse: use page_private() to get page->private value Yasuaki Ishimatsu <yasu.isimatu@gmail.com> - 2016-12-20 20:20 +0100
  [PATCH 2/2] mm/memory_hotplug: set magic number to page->freelsit  instead of page->lru.next Yasuaki Ishimatsu <yasu.isimatu@gmail.com> - 2016-12-20 20:20 +0100

csiph-web