UPSTREAM: proc/meminfo: fix spacing in SecPageTables
SecPageTables has a tab after it instead of a space, this can break fragile parsers that depend on spaces after the stat names. Link: https://lkml.kernel.org/r/20221117043247.133294-1-yosryahmed@google.com Fixes: ebc97a52b5d6cd5f ("mm: add NR_SECONDARY_PAGETABLE to count secondary page table uses.") Signed-off-by: Yosry Ahmed <yosryahmed@google.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Shakeel Butt <shakeelb@google.com> Cc: David Hildenbrand <david@redhat.com> Cc: Marc Zyngier <maz@kernel.org> Cc: Sean Christopherson <seanjc@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> (cherry-picked from commit f850c84948ef2d4f5e11fd8e528c2ac3b3c3d9c4) Change-Id: I7b42580b6465c176e44568496755ad5f629572c2 Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> [sumits: This also helps fix failure with VtsKernelProcFileApiTest.test_ProcMemInfoTest with android14-5.15. since the patch being fixed was backported via 16976e21d2e68ebbcd]
This commit is contained in:
@@ -108,7 +108,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
|
|||||||
#endif
|
#endif
|
||||||
show_val_kb(m, "PageTables: ",
|
show_val_kb(m, "PageTables: ",
|
||||||
global_node_page_state(NR_PAGETABLE));
|
global_node_page_state(NR_PAGETABLE));
|
||||||
show_val_kb(m, "SecPageTables: ",
|
show_val_kb(m, "SecPageTables: ",
|
||||||
global_node_page_state(NR_SECONDARY_PAGETABLE));
|
global_node_page_state(NR_SECONDARY_PAGETABLE));
|
||||||
|
|
||||||
show_val_kb(m, "NFS_Unstable: ", 0);
|
show_val_kb(m, "NFS_Unstable: ", 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user