From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f197.google.com (mail-qt0-f197.google.com [209.85.216.197]) by kanga.kvack.org (Postfix) with ESMTP id 4708A6B0033 for ; Fri, 3 Feb 2017 16:14:38 -0500 (EST) Received: by mail-qt0-f197.google.com with SMTP id k15so40209358qtg.5 for ; Fri, 03 Feb 2017 13:14:38 -0800 (PST) Received: from mail-qt0-x244.google.com (mail-qt0-x244.google.com. [2607:f8b0:400d:c0d::244]) by mx.google.com with ESMTPS id h35si20095057qtb.85.2017.02.03.13.14.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Feb 2017 13:14:37 -0800 (PST) Received: by mail-qt0-x244.google.com with SMTP id n13so7037410qtc.0 for ; Fri, 03 Feb 2017 13:14:37 -0800 (PST) Subject: Re: [Resend PATCH 2/2] mm/memory_hotplug: set magic number to page->freelsit instead of page->lru.next References: <1d34eaa5-a506-8b7a-6471-490c345deef8@gmail.com> <2c29bd9f-5b67-02d0-18a3-8828e78bbb6f@gmail.com> <722b1cc4-93ac-dd8b-2be2-7a7e313b3b0b@gmail.com> From: Yasuaki Ishimatsu Message-ID: Date: Fri, 3 Feb 2017 16:14:54 -0500 MIME-Version: 1.0 In-Reply-To: <722b1cc4-93ac-dd8b-2be2-7a7e313b3b0b@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, dave.hansen@linux.intel.com, vbabka@suse.cz, mgorman@techsingularity.net, qiuxishi@huawei.com TAB was replaced to white spaces. So please apply this one. --- From: Yasuaki Ishimatsu Date: Fri, 3 Feb 2017 15:18:03 -0500 Subject: [PATCH] mm/memory_hotplug: Remove unnecessary code from get_page_bootmem() The following patch is not applied correctly. http://lkml.kernel.org/r/2c29bd9f-5b67-02d0-18a3-8828e78bbb6f@gmail.com So the following unnecessary code still remains. void get_page_bootmem() { ... page->lru.next = (struct list_head *)type; ... The patch removes this code from get_page_bootmem() --- mm/memory_hotplug.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 7409f25..d67787d 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -179,7 +179,6 @@ static void release_memory_resource(struct resource *res) void get_page_bootmem(unsigned long info, struct page *page, unsigned long type) { - page->lru.next = (struct list_head *)type; page->freelist = (void *)type; SetPagePrivate(page); set_page_private(page, info); -- 1.8.3.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org