Received: by 10.192.165.148 with SMTP id m20csp1105229imm; Wed, 25 Apr 2018 12:40:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx49nvz0C1rSE+9Fa3XK64hdArV0+ZIgYOj4oCsz9eHWvBURySeb7wm57p5+OH5fY//P3j7GN X-Received: by 2002:a17:902:3001:: with SMTP id u1-v6mr30436548plb.164.1524685220783; Wed, 25 Apr 2018 12:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524685220; cv=none; d=google.com; s=arc-20160816; b=I/B7cwn5h5bc1xWCGuALJDMxqDqsfPaetKGDu8bgkpUC8PxTJL81E7JAbLFckFNrpo bGl6Q7tNnKAnc+gwSv2sXygymG9G8sq/JiiZpkrswfLCB+F7ZHPi87TUHNuv/1zyPc8B 03rmKbqNHo7S4WC0IfCdAVBwFYy7mPLIHoPzukkfLPs1XRKQNEUhsgeb49L6fHLHL4hy BgU4kmG1QE93seuD+UA8HmtFZU4chwt8SnVGGQPydL5iVT64SkPmcpOH4rDyP4v2I7MR fssKlaRh+709rf5j9affSt+3MAIyc8KPPvdo99O1jykJolTWGtCZw/l8mpjPtxzv9Yeu fS2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=rjtk0pk01xiopW9W7b21EBOFXubAxDEbsGvVX1EfoC8=; b=CMUrZmoS6E8uszaIR9k02ryCLZHrA5u7fYPuxHO8zu0+3EE6UEnJN4vonJ3nXdVl6V EftU7UwXZA7W2BWLmHbxalZELQL5CYA/cHZlyhhSePZUGlVRzqbX9rIO4XXjSLBy9DCI ahHZ6MQp3S+Ituo1UiIa++kPwFFq20+eyt0LTKERwUsHRlAaRw83/lGZeBxerEGVgwYY x9X181cZ4uB4qW2RZE4snKNS47eO+8yhzcZxQah7aBTIOXO84+dZWFEO6ZaAunBB6qPg 04Oj6YhSYQa7hnMa7Ud095mqTVlYkJ1m0wGBzA8KiNBg+gw34+ad28Phx6UIsMsQnoLd awaw== 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 n4si4688783pgu.687.2018.04.25.12.40.06; Wed, 25 Apr 2018 12:40:20 -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 S1751519AbeDYTim (ORCPT + 99 others); Wed, 25 Apr 2018 15:38:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:44683 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751084AbeDYTij (ORCPT ); Wed, 25 Apr 2018 15:38:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 34B25AD45; Wed, 25 Apr 2018 19:38:38 +0000 (UTC) Subject: Re: [PATCH] mm: don't show nr_indirectly_reclaimable in /proc/vmstat To: Roman Gushchin , linux-mm@kvack.org, Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, kernel-team@fb.com, Matthew Wilcox , Alexander Viro , Michal Hocko , Johannes Weiner References: <20180425191422.9159-1-guro@fb.com> From: Vlastimil Babka Message-ID: Date: Wed, 25 Apr 2018 21:36:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180425191422.9159-1-guro@fb.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/25/2018 09:14 PM, Roman Gushchin wrote: > Don't show nr_indirectly_reclaimable in /proc/vmstat, > because there is no need in exporting this vm counter > to the userspace, and some changes are expected > in reclaimable object accounting, which can alter > this counter. Oh, you beat me to it, thanks. > Signed-off-by: Roman Gushchin > Cc: Vlastimil Babka > Cc: Matthew Wilcox > Cc: Andrew Morton > Cc: Alexander Viro > Cc: Michal Hocko > Cc: Johannes Weiner Acked-by: Vlastimil Babka Andrew, can you send this to Linus before the current rc period ends, please? Thanks, Vlastimil > --- > mm/vmstat.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/mm/vmstat.c b/mm/vmstat.c > index 536332e988b8..a2b9518980ce 100644 > --- a/mm/vmstat.c > +++ b/mm/vmstat.c > @@ -1161,7 +1161,7 @@ const char * const vmstat_text[] = { > "nr_vmscan_immediate_reclaim", > "nr_dirtied", > "nr_written", > - "nr_indirectly_reclaimable", > + "", /* nr_indirectly_reclaimable */ > > /* enum writeback_stat_item counters */ > "nr_dirty_threshold", > @@ -1740,6 +1740,10 @@ static int vmstat_show(struct seq_file *m, void *arg) > unsigned long *l = arg; > unsigned long off = l - (unsigned long *)m->private; > > + /* Skip hidden vmstat items. */ > + if (*vmstat_text[off] == '\0') > + return 0; > + > seq_puts(m, vmstat_text[off]); > seq_put_decimal_ull(m, " ", *l); > seq_putc(m, '\n'); >