From patchwork Mon Jun 29 17:30:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Su X-Patchwork-Id: 11631295 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B36BC912 for ; Mon, 29 Jun 2020 17:30:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8032A22597 for ; Mon, 29 Jun 2020 17:30:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="VWuRDzoV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8032A22597 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=163.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8A7246B009D; Mon, 29 Jun 2020 13:30:58 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 857B96B00A0; Mon, 29 Jun 2020 13:30:58 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 76D036B00A1; Mon, 29 Jun 2020 13:30:58 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0132.hostedemail.com [216.40.44.132]) by kanga.kvack.org (Postfix) with ESMTP id 5BA9E6B009D for ; Mon, 29 Jun 2020 13:30:58 -0400 (EDT) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 0942A181AC9BF for ; Mon, 29 Jun 2020 17:30:58 +0000 (UTC) X-FDA: 76982939796.30.ice52_3101b0826e71 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin30.hostedemail.com (Postfix) with ESMTP id D1EB4180B3C85 for ; Mon, 29 Jun 2020 17:30:57 +0000 (UTC) X-Spam-Summary: 1,0,0,727cb016afc6f043,d41d8cd98f00b204,sh_def@163.com,,RULES_HIT:41:355:379:582:800:960:968:973:988:989:1152:1260:1277:1312:1313:1314:1345:1516:1518:1519:1534:1539:1567:1593:1594:1595:1596:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3865:3871:4321:4419:5007:6117:6261:6653:7903:9592:10004:10400:11026:11334:11658:11914:12043:12297:12438:12555:12895:13069:13311:13357:13439:13895:14181:14394:14721:21080:21627:30012:30054:30056,0,RBL:220.181.12.14:@163.com:.lbl8.mailshell.net-66.100.201.100 62.50.2.100;04yf9tniugcs6czeumnug6m48itrtoc18kk5686qhzdfyekboxh7c1cboxshuda.34jg791jea6mganxr4uunwuympizzzmher87m7fmnzzbwg1xaiym36zc5cad8ha.k-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: ice52_3101b0826e71 X-Filterd-Recvd-Size: 2120 Received: from m12-14.163.com (m12-14.163.com [220.181.12.14]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Mon, 29 Jun 2020 17:30:51 +0000 (UTC) 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-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 X-Rspamd-Queue-Id: D1EB4180B3C85 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 X-Bogosity: Ham, tests=bogofilter, spamicity=0.402119, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: remove the redundancy code, the zone_start_pfn is assigned from zone->zone_start_pfn Signed-off-by: Su Hui Reported-by: kernel test robot Reported-by: kernel test robot --- 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,