From patchwork Thu Nov 17 04:32:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yosry Ahmed X-Patchwork-Id: 13046118 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DD60C433FE for ; Thu, 17 Nov 2022 04:32:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234505AbiKQEc6 (ORCPT ); Wed, 16 Nov 2022 23:32:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233637AbiKQEc4 (ORCPT ); Wed, 16 Nov 2022 23:32:56 -0500 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CA58450A7 for ; Wed, 16 Nov 2022 20:32:55 -0800 (PST) Received: by mail-pj1-x1049.google.com with SMTP id c10-20020a17090aa60a00b00212e91df6acso421658pjq.5 for ; Wed, 16 Nov 2022 20:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=aPfz7WPanVmO6P7mkMngEyHk/rMaAEiwNpFse5O+tqM=; b=HdydIX0CXLjX9PAqV1oTIzt4lJrdlYjImWI83DE6XPrdkzdC72019HweIQ+6F8Fi80 8cYlXC6SzbRByJB4mewKXX/Tf7yItRXOhReUDd2eGOWREo2YpjLhXhUjQpL8/FN1eJJB /HymzCDDV1iOnw7d2RM/TexsCCVXilvQzqlFMo0XxB+pvgT0uBkEBMMjmvVfuV3jCzVz Xj4A7tpJeGGiZKbmhWPydEeJiqDHbTkMT5IFTAw+5UcEmunZsUvXri1Y88kzoNqMvb3K 1/lwFMwX3E1G//+M56+9A3BIeS7cmsadgatjb7bTD6O9uh+FtSfAxmq6baRnJjCFL+vr pVgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aPfz7WPanVmO6P7mkMngEyHk/rMaAEiwNpFse5O+tqM=; b=NRpp3ef6zXKJbbPqHBZ+j/J3icQRAq1g7yJSFCGFZ+Rlg+mEZCjz3EIPngOuhhIxZc HIk9kwQNbAMX/qKDSly1KofiCvLSzTcVzgQKz7skn1JnRZO2DSZ0eXhzFDfJVbZipraF BwHXR48L900mwZ/b9ngdpWxSQYQYJgSU2gLVlyxM+Ivt9jRtNfvY+Mp6BMQjujGCGvS5 EkP3JrvJ6XYN/SFefYPN2yGn6O8Dfsd4iUUpAJSKtNOo/T2NzMr9Zh4LLIXDqE1nIbRp KoxcR4eH8Ee7qdKPz9Swu5MXRYrcoMGdHpNSv6zhQMkkWMtJcvlDl+KwGpF13eaG5sBC rMKA== X-Gm-Message-State: ANoB5plEsPiQY4NjhRF/WKE5Stm+qizc+fgt+33odg+2XnBzt0nBsVwY U4OVVgGMNtQn3qIM48quV4Tk9ZFKdhT+xwyv X-Google-Smtp-Source: AA0mqf5vh871tskpgsVs2JR/F2/2RLJ8ASmrrXij8/N5i5PbB9GmDPDU7IO8m0LjuspVCKlF+DlO0FLjUvJ9oBdQ X-Received: from yosry.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2327]) (user=yosryahmed job=sendgmr) by 2002:a62:542:0:b0:56c:45db:4481 with SMTP id 63-20020a620542000000b0056c45db4481mr1167664pff.86.1668659575076; Wed, 16 Nov 2022 20:32:55 -0800 (PST) Date: Thu, 17 Nov 2022 04:32:47 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog Message-ID: <20221117043247.133294-1-yosryahmed@google.com> Subject: [PATCH] proc/meminfo: fix spacing in SecPageTables From: Yosry Ahmed To: David Hildenbrand , Andrew Morton , Johannes Weiner , Sean Christopherson , Shakeel Butt , Marc Zyngier Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Yosry Ahmed Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org SecPageTables has a tab after it instead of a space, this can break fragile parsers that depend on spaces after the stat names. Fixes: ebc97a ("mm: add NR_SECONDARY_PAGETABLE to count secondary page table uses.") Signed-off-by: Yosry Ahmed Acked-by: Johannes Weiner Acked-by: Shakeel Butt --- The commit this fixes is in 6.1, so I hope this can also land in 6.1. --- fs/proc/meminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c index 5101131e6047..440960110a42 100644 --- a/fs/proc/meminfo.c +++ b/fs/proc/meminfo.c @@ -115,7 +115,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v) #endif show_val_kb(m, "PageTables: ", global_node_page_state(NR_PAGETABLE)); - show_val_kb(m, "SecPageTables: ", + show_val_kb(m, "SecPageTables: ", global_node_page_state(NR_SECONDARY_PAGETABLE)); show_val_kb(m, "NFS_Unstable: ", 0);