From patchwork Tue Mar 24 14:22:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 11455623 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 D7C9C1667 for ; Tue, 24 Mar 2020 14:23:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A5F3C20788 for ; Tue, 24 Mar 2020 14:23:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QzQ13DR7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5F3C20788 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 74C006B000C; Tue, 24 Mar 2020 10:23:03 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6FD3D6B000D; Tue, 24 Mar 2020 10:23:03 -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 639926B000E; Tue, 24 Mar 2020 10:23:03 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0191.hostedemail.com [216.40.44.191]) by kanga.kvack.org (Postfix) with ESMTP id 4781F6B000C for ; Tue, 24 Mar 2020 10:23:03 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 14EE01821380A for ; Tue, 24 Mar 2020 14:23:03 +0000 (UTC) X-FDA: 76630472646.18.fang34_71e4dceefe23a X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,bhe@redhat.com,,RULES_HIT:30012:30054,0,RBL:63.128.21.74:@redhat.com:.lbl8.mailshell.net-64.10.201.10 62.18.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:0,LUA_SUMMARY:none X-HE-Tag: fang34_71e4dceefe23a X-Filterd-Recvd-Size: 2766 Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by imf07.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Mar 2020 14:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585059781; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:references:references; bh=zQWZEZmUvi4qR88INJygABxgVNbImLNogNiP/46ZYIU=; b=QzQ13DR7dqhfTjW824W6IBwEqI6G0yiMd+SM+nnkWojdwdEU9Q6UkFRsqoSiktu7oNwtrO WjwUgz2SMx2Zh+eT7OSgazpXF3rBJXOFYJ7oXNNn/Ev0sCX6vbbdy37pR5KUf8oNYKIjOY 8PLQyvEKDWekRCuA5Mhe4tuHtaOU1S8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-306-QyoWTaspMVCP-mDcxPeR4Q-1; Tue, 24 Mar 2020 10:22:56 -0400 X-MC-Unique: QyoWTaspMVCP-mDcxPeR4Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7B40B8024DB; Tue, 24 Mar 2020 14:22:55 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-69.pek2.redhat.com [10.72.12.69]) by smtp.corp.redhat.com (Postfix) with ESMTP id A3F835C241; Tue, 24 Mar 2020 14:22:52 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, iamjoonsoo.kim@lge.com, hannes@cmpxchg.org, mhocko@kernel.org, vbabka@suse.cz, bhe@redhat.com Subject: [PATCH 5/5] mm/vmstat.c: remove the useless code Date: Tue, 24 Mar 2020 22:22:29 +0800 Message-Id: <20200324142229.12028-6-bhe@redhat.com> In-Reply-To: <20200324142229.12028-1-bhe@redhat.com> References: <20200324142229.12028-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: No one calls is_zone_first_populated(), remove it. Signed-off-by: Baoquan He --- mm/vmstat.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/mm/vmstat.c b/mm/vmstat.c index 4bbf9be786da..7097eb99f30d 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1548,20 +1548,6 @@ static const struct seq_operations pagetypeinfo_op = { .show = pagetypeinfo_show, }; -static bool is_zone_first_populated(pg_data_t *pgdat, struct zone *zone) -{ - int zid; - - for (zid = 0; zid < MAX_NR_ZONES; zid++) { - struct zone *compare = &pgdat->node_zones[zid]; - - if (populated_zone(compare)) - return zone == compare; - } - - return false; -} - static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, struct zone *zone) {