Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2980227ybt; Mon, 29 Jun 2020 12:02:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJMR7gAOQti6lWewu4VMqFpeKImmvP1+1HkEyIDArIdW/j5eRUqY5i46eEuArQPt5B+nvZ X-Received: by 2002:a17:906:2c18:: with SMTP id e24mr16038465ejh.335.1593457339117; Mon, 29 Jun 2020 12:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593457339; cv=none; d=google.com; s=arc-20160816; b=o4MWhvVs2u0mYVLv0P7yyeOb1qsWWE/3iBtZ1vYNkJ1zLKXaAW2pv/Dqc1b3Jtbbu0 BE2TzXRYS0rn3Fc+1WEnTj/33EsI7szk9d8qz0ZG7jgzGgPX4H0V6me1QNX3y3WjjcJ3 Lyf31Y67QjqDpG01uesCCS8UvfcbERvNTDolHmi3equsxSfixlgM6hWS/+MkLr5tE8Je +Cc41Y4olk3Z4QkypNGCotvHz/F4/XVmhkpPHxRc+/fNiJ9htgCJbvL1ubpVY6mOZklm vNKfSPTznjTApbVCeT584tPjhMfRBrFEaH8jRQpCZyycmyBKEMLW/LFf9jhqSXYCQNAp ZAEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=Hvy7Cq8rT4BgdG7jY1sZ9yj6W+j3Whjfwevbqonqeco=; b=XFqRwkW/Yq0otuFMSpUcO/+6gMNqkAXv+EdYYrinj2zHFS7+OKRRUpLUvna4lLNcV/ 3vbR95nj2n6nejdeQ7OuqdYZXaDuPcJft0HOlTBf4YQ7F0Taeu5gV1emMR7lIIWowjnp ymoo+RWUZFAoJNfA1XAW5TL/uqLjaqJlQ0dufsMb9VlM3dLxg/k0xt7Co5qCVMwWlt9g jC7d1BjGDu/tkWJDhVQBuITt7p1EgYlxS+whwGncOIUvmILsCtkWjbtEw9SnEzplSWIm I02tC3XStrjXoEmeVQJTWg2DVMr7pNfXSC781A799cYWrH97Vs3K48qJMXIWhlhguz48 WBKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=VWuRDzoV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b22si233467edn.212.2020.06.29.12.01.55; Mon, 29 Jun 2020 12:02:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=VWuRDzoV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730459AbgF2TBs (ORCPT + 99 others); Mon, 29 Jun 2020 15:01:48 -0400 Received: from m12-14.163.com ([220.181.12.14]:51505 "EHLO m12-14.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728171AbgF2TBh (ORCPT ); Mon, 29 Jun 2020 15:01:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=Hvy7C q8rT4BgdG7jY1sZ9yj6W+j3Whjfwevbqonqeco=; b=VWuRDzoVvVJbps476+X/O pxQcQfJ0RRSNyB2SDRUJtYfI7W7p1bwlziWLZe2YAQy4ef7Xecs6TLDh7DDmLiw6 ZVmAby0PFGJ7AddKuqkq2S+j37/MpAPNK2H3HtyFs81Zlvfwsc++d91kIzS2Kkvw IGSbttAyOkTaBgJbeTUym0= Received: from localhost (unknown [101.86.215.249]) by smtp10 (Coremail) with SMTP id DsCowADHscVHJfpeN+61Iw--.48796S2; Tue, 30 Jun 2020 01:30:48 +0800 (CST) Date: Tue, 30 Jun 2020 01:30:47 +0800 From: Su Hui To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH] mm: remove the redundancy code Message-ID: <20200629173047.GA38128@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CM-TRANSID: DsCowADHscVHJfpeN+61Iw--.48796S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtw18Zw15uryDZw1xAFWrXwb_yoWxCrgEvw 12y34FkrWYyF4S9w48Aa17Krn2qryvkF18GF13KF13t3W2y3ZYq3WkAwnxAryUWrZ7uryU Cr4DZFWxtryaqjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0PPE3UUUUU== X-Originating-IP: [101.86.215.249] X-CM-SenderInfo: xvkbvvri6rljoofrz/1tbiLghSX1SIoztm4wAAsq Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove the redundancy code, the zone_start_pfn is assigned from zone->zone_start_pfn Signed-off-by: Su Hui --- mm/page_alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3c4eb750a199..3372a8c9fbc4 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6215,8 +6215,6 @@ void __meminit init_currently_empty_zone(struct zone *zone, if (zone_idx > pgdat->nr_zones) pgdat->nr_zones = zone_idx; - zone->zone_start_pfn = zone_start_pfn; - mminit_dprintk(MMINIT_TRACE, "memmap_init", "Initialising map node %d zone %lu pfns %lu -> %lu\n", pgdat->node_id, -- 2.25.1