Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764703AbcLTTRL (ORCPT ); Tue, 20 Dec 2016 14:17:11 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:32838 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764411AbcLTTQF (ORCPT ); Tue, 20 Dec 2016 14:16:05 -0500 Subject: [PATCH 1/2] mm/sparse: use page_private() to get page->private value To: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <7fd4b8b0-e305-1c6a-51ea-d5459c77d923@gmail.com> From: Yasuaki Ishimatsu Message-ID: Date: Tue, 20 Dec 2016 14:16:00 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <7fd4b8b0-e305-1c6a-51ea-d5459c77d923@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 795 Lines: 27 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 --- 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