Received: by 10.192.165.148 with SMTP id m20csp1082779imm; Wed, 25 Apr 2018 12:18:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr3ueVt3+J5xKcZly1nuqBCWDob5HlLznPDdZil86Ey4VSj7Jb4ukQrj/xEqaSnggxRGmwz X-Received: by 10.99.3.69 with SMTP id 66mr1522994pgd.98.1524683882667; Wed, 25 Apr 2018 12:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524683882; cv=none; d=google.com; s=arc-20160816; b=VAIJS8Htdl1ufugIVgR/bSe98b3Ec2ZU8yR2OD3RWGPmYXxpzRCpz0jTyPstRFb9+M ROMS5YqlGOx8tm7ZukTOWMnpiUmEQ34rIJ6QTdOn0Ava4aZPsHsUO3EpGOwYUUbQMEL+ ooh+6x8gHhoF2q1tOntqudyJprzQzXuQ08ZxWLoKJLnrJPMusEvwq62cli+3dBfivKi2 uTPNw2HU38roiqx4EcP32VMfEjUFZ680//Eex4FCnTdhTQ35+6mz6+Yw5zbZmguYExdo 6NtJR92e72g0PLuzjnR6Yn9hVeP/9JB8YbEsHs1InABKi9jBLHtpRly8rNIBPK6HwygC RNcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature:arc-authentication-results; bh=CoSzq2DtC5ZCQOh087triT3A72NN2epHrr/TJMDqL2U=; b=XWolrNQlTParzNiKeRtC1fG8ACTUbX21RHKoh4iHjTzKh2vELbqA8pFTI24y0I+WKW P1N0jqS2OhIjjHmFpCNmG8iruUIyjY9GWc0zKsuDlsqpRBltSHS+V/O01Wo+DInFAa43 v4umqwfgnVul7gnYw6p/1hMMn743vxpDopHCjYbdLPr2rmwg25LQbw3YNcHPe3r0Npvy wpgo0xVJ9JXXKWvSHPfOIr0m9ZESBnzU89C++WFZti2jxPmuP/FJluxm5ab5RGtUy6oS JhhvNGq/0ZTpD/RomiFbqLCtZgpDU5J6j9D8ZDoyfwpu3dzoMVtyaG4MATkexIXRgxoD gjBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=n+aMeBVy; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=BpLt1dhH; 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=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4-v6si17359830pln.331.2018.04.25.12.17.48; Wed, 25 Apr 2018 12:18:02 -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=@fb.com header.s=facebook header.b=n+aMeBVy; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=BpLt1dhH; 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=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756367AbeDYTQ0 (ORCPT + 99 others); Wed, 25 Apr 2018 15:16:26 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:50142 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751809AbeDYTP6 (ORCPT ); Wed, 25 Apr 2018 15:15:58 -0400 Received: from pps.filterd (m0044008.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3PJDpql003370; Wed, 25 Apr 2018 12:15:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=facebook; bh=CoSzq2DtC5ZCQOh087triT3A72NN2epHrr/TJMDqL2U=; b=n+aMeBVyR1brsKa+3PI4pPsGmTvfQvp7664/caFYGTgKTVS8+p2xjPkT5vHNAv6cEOBj IfGMxhajWgVe3l/kCS1G91AxJaZkOXPlkz/tqXM1QpxROzEoQp5oGTfAR/pWCb1FvyQF 9Ufc/3WtIKFdZro3gbjC3RjLmc+3aANrAgo= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2hjxwbg4fj-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 25 Apr 2018 12:15:22 -0700 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.14) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 25 Apr 2018 12:15:19 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=CoSzq2DtC5ZCQOh087triT3A72NN2epHrr/TJMDqL2U=; b=BpLt1dhH0o+DpmU8spVz+Ufsde5Hdn8ld2a4vqK+0YlAMwb9c/4KYH3RNAN6Is3iYsspMCHEu1Gpc2JVp0U2/Gr3knewmvjE1WTCMuui4GDr9QSyXaeY7h7XUlNGXKvTMgUzbBSMZxeb0vcio78Rlr4blvrgRkPdH/CGUBmMYUU= Received: from castle.thefacebook.com (2620:10d:c092:180::1:129) by BL2PR15MB1075.namprd15.prod.outlook.com (2603:10b6:201:17::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.12; Wed, 25 Apr 2018 19:15:12 +0000 From: Roman Gushchin To: CC: , , , Roman Gushchin , Vlastimil Babka , Matthew Wilcox , Andrew Morton , Alexander Viro , Michal Hocko , Johannes Weiner Subject: [PATCH] mm: don't show nr_indirectly_reclaimable in /proc/vmstat Date: Wed, 25 Apr 2018 20:14:22 +0100 Message-ID: <20180425191422.9159-1-guro@fb.com> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c092:180::1:129] X-ClientProxiedBy: AM5P190CA0008.EURP190.PROD.OUTLOOK.COM (2603:10a6:206:14::21) To BL2PR15MB1075.namprd15.prod.outlook.com (2603:10b6:201:17::9) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BL2PR15MB1075; X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1075;3:VicIybXSxGiTnHuY1mx3pNtgWqjuRh3C7WA6UArVTJ4Dha0Ee8SDPHa0Wc8aiUKsEyaaUuu/Hv44233YGheZ7x0BF9+udn337ib4VhKZp00yGcW4m0Y/2vVG5uVnVl/LaiuckA2xJzeEAxzLX4z9etxG1lcLahY9HWobxdM9qnzAYxE6VUN9Xv0qk1C081uHRAl44kjMj1iondRdjGOq+jPTjoGN0aElW6J9LkcxGx4I7W3BlrqVEsFvbwH+YSAg;25:4twOvYt/LlCnd/7dX14xab8ZrHy8vNfSRBpNcQ0D74jc/ZrwAoCs6aB/OaDa0afoAL5YwoT+WDKqM+jZdnl4KiuTvS0PcE9aEyZVbb3Eh4Nig576EhyGRrfYp58akxYz1e8F1xkoIGwC8Ud9JsimqAv3XTBjUhFFtanR5dtKOeBv/b8d6lmzxtGE7kV7EC6nxI4m2tHzyk65b1sskxfZLbvgTonUg5U6sMyyzCEU8l7PRh2CIE545S4xXXQe6D+pNQ24wTKgpoqUo3t1CfGKXW419cIqYvUVj0TISLmIRfdwlPDTioOUAjLeWeEBqzZPHkcL0STlx9P8v/OWBH4fPQ==;31:h9AClhXci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6qkpRd8KmK+kXFYHmleH/RY0EZWL9mfwRgpivZ4l2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231232)(11241501184)(944501410)(52105095)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BL2PR15MB1075;BCL:0;PCL:0;RULEID:;SRVR:BL2PR15MB1075; X-Forefront-PRVS: 06530126A4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(366004)(39860400002)(346002)(376002)(199004)(189003)(7736002)(305945005)(6486002)(6916009)(69596002)(2351001)(6666003)(4326008)(8676002)(476003)(2616005)(50226002)(81166006)(8936002)(81156014)(486006)(86362001)(2361001)(68736007)(106356001)(6512007)(48376002)(54906003)(316002)(59450400001)(25786009)(105586002)(6506007)(1076002)(386003)(53416004)(16586007)(53936002)(52396003)(52116002)(51416003)(47776003)(46003)(478600001)(186003)(50466002)(1857600001)(97736004)(36756003)(2906002)(5660300001)(6116002)(16526019)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR15MB1075;H:castle.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR15MB1075;23:8YuIovartQqJt2Wz3wIiIR6sSZbBgpV0kihOgpdFQ?= =?us-ascii?Q?R2Rf2HrH3uhBOyU36kB3/nq1z535zrNPaodc+OBlb2BKearXMYEXfszxKHWE?= =?us-ascii?Q?8tAPfcWY8k6r+/osOSTpbZigwR4pxwonhlMl5h51dn8LdKnsYOhHG/n02/DQ?= =?us-ascii?Q?eRQoPhOi/nPo9hRaRwjvPDk/CFjVZNhUT3aT7a3ZV88y3oNYZo3Xz921YGTj?= =?us-ascii?Q?FUqwkM5wcX4r7C5kgXM9tb7zc7osxkbps+Tc14WokP4D/92WjHNsQdiPbbZh?= =?us-ascii?Q?u2t/uh47ipGgaB4X5NHUqBBqoFcQSxgcJnaLV9UMG0VF/bGBlYqj2PzkiS5v?= =?us-ascii?Q?zLmA/UR0twSMuSUxwilGQoobSTCnJw71lydLPvpgKqPE9SokzwjVLY60Ietl?= =?us-ascii?Q?bbPEShKm2wmsR5c8+uBihJAgqVd2GbGthrjP/rla7BjOLjzJR/2V3ABp9wQr?= =?us-ascii?Q?10pt39ffyAESOlMFGwvkmeZkky4dPjgBmusi1CjA6fe1X5pT12kREpdVPYfQ?= =?us-ascii?Q?rE741ET7BjE69LTOvlLUul5LTTwLYpxl6jZ8TwB6L0CFEb30+tI/14Pc4LTb?= =?us-ascii?Q?OVA8KXpQVyXkSm5VG8YOOCvR/BUuUCI8EFkzS6M6vMNxlJ+rzM1s863Enaqh?= =?us-ascii?Q?cfBrFwf+4XmHNRaPCivI2QNHqDQwQ0PsKmIyHzBvVTmOckavgOlnuz4r6HL2?= =?us-ascii?Q?cXososG49K6z0DevhctAbhXuoWLQh0yGbP4q2Ydwiu6lRlBmRTyslsli65Qw?= =?us-ascii?Q?cdtQenotB6pkfSi+0pKyw1vgtXQ+g2uCFYCfPCo1anoXVXhL+SysEhnO3VMH?= =?us-ascii?Q?3kSLZ8z2XPG3cyz18gQOU28pistlqw7Dwr2i0bBX8QYoCtbWNvv6S2tYGkZU?= =?us-ascii?Q?bAC1lRodMMYGHRQEsG9MAU39M6THwBMxm1N+WvgCr/pL2ImU76WfeldmmbwV?= =?us-ascii?Q?gYJddg3IUNK/O0n2eYcaE36A79fqJ9IYLGueil+qH0STS350DeafpJNJw+o+?= =?us-ascii?Q?jWp+Ly373O0asdjTICx0cdYzoSA0qDPBESMTzRjivtyqv1FY1yiRkmr/B8wd?= =?us-ascii?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UFFcaY4AQ0eZhqykvUfBvn7h5DNW1EoWyF6lQf6MVEr9/HIRp4x788fzye24hGmwd5s8vs2PEpI=;24:vMIteaDm7iNcY5hPAvCPWgyZ4aROey6il9y2DMZiWxYIo8Ttfc+FD8PKETC6DZfoZPH6x1IR9jjYHQCR0WUA96MJZ0KZw/kbwUuBGdUtd3w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1075;7:9S3KUiQCFUM2lRECSTy8BDtHtBO87OSgz8YvzvqpZsS1ZkleKSV+T7CnLdpkG/QQkK//xfqWzJDrPmD61LOmpPhTOCsU1yJZjUCaZraPaYu4hKyLDvglwZ6ijnuY7FNA7DvQsbXeIbZQXqojVUddwWSOe5JuCk5DA9jOfYLWZQA48CDvRBF5S/Oosk6FUqPUSzJ2j1Tl2ZepoxmzyHg4ZScJ5LIHPWIZT2nCt+Je4us3iiNQcjWfkAADZ52XdA/R;20:ykKCCIpxQ0RUTat0JlveCRJfbEr3GjHuuUY6r1tM0rlMNT+BhyIQxqgJwFTxXy5XJNGEupNITXQstvV69XGQO3QkWgNE3tHIlH6akzJ5u8nRSIhXxNKqtqyRAHaRroGUuCOEB95jjsIVkK2VIAxUyb9k0H64LX/4awGfs82Hjk8= X-MS-Office365-Filtering-Correlation-Id: 48403774-4b38-42e7-bdb7-08d5aae0df87 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 19:15:12.6271 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 48403774-4b38-42e7-bdb7-08d5aae0df87 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR15MB1075 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-25_06:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Roman Gushchin Cc: Vlastimil Babka Cc: Matthew Wilcox Cc: Andrew Morton Cc: Alexander Viro Cc: Michal Hocko Cc: Johannes Weiner --- 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'); -- 2.14.3