Received: by 10.192.165.156 with SMTP id m28csp1139444imm; Wed, 11 Apr 2018 13:10:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx49VCsUNglBwQctdQAHE232GZkya+x9cXLgRIRgTooh7zNM8a9Wkb0O1p56SCBrcLvqFLaUN X-Received: by 2002:a17:902:70c6:: with SMTP id l6-v6mr6577048plt.201.1523477432315; Wed, 11 Apr 2018 13:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523477432; cv=none; d=google.com; s=arc-20160816; b=s51NHs/Ri/93JDNQ4z+8rlIvlcBLw1dpsQGbZNuT//zP/7iinsrGYIsdcepWroBG5b lKB488iAqI5qGxda8kynUS3AYXNs3gRqVayB3nuqGyHmLw5UujY2m94GEhY7rR6tTEsI y7MffhmvEyN0nMdRFq6N0GPunJ9w7JUDsJhnuXU4Hp0/6c4vDRtwqhwAYdHiaSUI9x4q k3dsb3NClikfIb5XSz/gExKiXbih0Lgy3Cn+ktyof7Uv9ZJ0NimDE3XGRVeevRMJjbJI scLcqrNeR8/On63Xv4i2BbFgZAcCReGsn4KTO4NxQbgRPF52ZG1pgpP58CShYVpqC8LA VYuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wGUoa1860lkqPHGECj9R1c4e4KES9lQOnH9En37DD60=; b=HtsIeU9ASeRq+Gr48Fwsw6hLZ+PmePGVmmsxlrl6iOa1xenZJVFMLpc/oOwU1hcaGb Cf3a4zI7YfF8A7sxh4gmFvemEIKJ+OR+d/lPHGqC4BMDolJsl0W14gMJrh1D5b6j6Fa4 ppE4vp4xBKHoatcSnyCVYwIXimVKaPzIfzSrWxfTe+bDrV7OlUTzrRYS4dseMstKtZFZ sojhzRl1XJ8tl3Pk0voOTbhnOosdtlfSWNgLZNuTTJpWkPmDqY41iti54TnEs6YNDFCJ mQPF/E26KtgB6EpzmmrvPc9O3r8FQbmbDWQ6Mizujin08mE7wyNJOyZ/g2CyD4NFTxub HTBQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y186si1372750pfb.284.2018.04.11.13.09.55; Wed, 11 Apr 2018 13:10:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933764AbeDKSzl (ORCPT + 99 others); Wed, 11 Apr 2018 14:55:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35494 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933049AbeDKSzh (ORCPT ); Wed, 11 Apr 2018 14:55:37 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E2A34C9F; Wed, 11 Apr 2018 18:55:36 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Reza Arbab , David Rientjes , Anshuman Khandual , Vlastimil Babka , Mel Gorman , Johannes Weiner , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 4.9 038/310] mm, vmstat: Remove spurious WARN() during zoneinfo print Date: Wed, 11 Apr 2018 20:32:57 +0200 Message-Id: <20180411183623.913625546@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183622.305902791@linuxfoundation.org> References: <20180411183622.305902791@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Reza Arbab [ Upstream commit 8d35bb310698c69d73073b26fc581f2e3f7f621d ] After commit e2ecc8a79ed4 ("mm, vmstat: print non-populated zones in zoneinfo"), /proc/zoneinfo will show unpopulated zones. A memoryless node, having no populated zones at all, was previously ignored, but will now trigger the WARN() in is_zone_first_populated(). Remove this warning, as its only purpose was to warn of a situation that has since been enabled. Aside: The "per-node stats" are still printed under the first populated zone, but that's not necessarily the first stanza any more. I'm not sure which criteria is more important with regard to not breaking parsers, but it looks a little weird to the eye. Fixes: e2ecc8a79ed4 ("mm, vmstat: print node-based stats in zoneinfo file") Link: http://lkml.kernel.org/r/1493854905-10918-1-git-send-email-arbab@linux.vnet.ibm.com Signed-off-by: Reza Arbab Cc: David Rientjes Cc: Anshuman Khandual Cc: Vlastimil Babka Cc: Mel Gorman Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- mm/vmstat.c | 2 -- 1 file changed, 2 deletions(-) --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1351,8 +1351,6 @@ static bool is_zone_first_populated(pg_d return zone == compare; } - /* The zone must be somewhere! */ - WARN_ON_ONCE(1); return false; }