Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4902141ybb; Tue, 24 Mar 2020 07:25:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvoBCkyix080WvC3BpsShPkCwh97rlJBrsQnimHI6o2jB+zEU2OjAnPKhI4oB4ALRGYTVc7 X-Received: by 2002:a05:6830:19ce:: with SMTP id p14mr21409067otp.362.1585059916296; Tue, 24 Mar 2020 07:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585059916; cv=none; d=google.com; s=arc-20160816; b=nqaw7Ez3puI+PvdcqPbOjt6L8oMU3VI0gUu5+gXiBv3ViQ4SzoQsPzuZ2fxnOnJqht 8cmeY6+HKFVrjP+RyWl8YXUQV+FkqJ9GngMU2Myok9nerDMzICC+VtQ0VZfBTREsh/e9 JmP8u0XuDRr6T7aixbKV0pOkLs+f/rvIKgwC1NTeuW3W8JJoAjz08yGY7HUPQ/k8esdq Qww7hFc8jKkhqO2Bb1/gDhUztsvNShMYYQcRPwM3sKVmkMsLRpTqmYuyHYJmi92J/VMO 7+u8GxMqEpcXSikMUNs9Jdu4F4a+EsdLMiONgTTc7JU6ZtL8dOGonTs7EzehbMXDOd8D 0PhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=zQWZEZmUvi4qR88INJygABxgVNbImLNogNiP/46ZYIU=; b=KtpqlKlIKr9bcLRAmtnQA/kVlbgWttoP6SXKZ+7l1SteaQvOLQGC+yYYFVvNy7n9vu Zy+70G6mlCPO7wSBb+rGHmFy09XsqDHE8PieaKBsHsLsBJV/2oQJrseKHOUyc7U3cTge w7n1Co6y5T5HpsxPlsgLfIMg1AhbKbGaQUVmOMVGC76ChU0OdZm/0pWX5N+0ivNoNVuH UpjAOb2lGrz1NpAoJRSXFcUm5djpkEewnLa1lsUw8Yk16SqHGqDA+FkvpUFzv43+PCj7 4OwH37eYKPSdslHwYo7oj2eDzGbTOTB77PQzYgyM0diU0HJyVpEpzzyXylMGS1lpgPB5 Olyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BAq86NAs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 109si4114097otv.36.2020.03.24.07.24.58; Tue, 24 Mar 2020 07:25:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BAq86NAs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728224AbgCXOXA (ORCPT + 99 others); Tue, 24 Mar 2020 10:23:00 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:44672 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727270AbgCXOXA (ORCPT ); Tue, 24 Mar 2020 10:23:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585059779; 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=BAq86NAsx+rymdUcLd3UkTN4PSphSVWGdE98raixIyC0MMmorXlSGzjJTBBHc6KEsEEnDf MO2AIayBPBUDJygMRSjC8Q4oH/2MrY2a/PVijW41DMmV+yYuAroFJYo3W2JhBMNaCFBKkR ve7P2c6COdqKlXfiVaIUjqs2rXlKeJQ= 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { -- 2.17.2