Skip to content

Commit e8277b3

Browse files
koct9itorvalds
authored andcommitted
mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
Commit 58bc4c3 ("mm/vmstat.c: skip NR_TLB_REMOTE_FLUSH* properly") depends on skipping vmstat entries with empty name introduced in 7aaf772 ("mm: don't show nr_indirectly_reclaimable in /proc/vmstat") but reverted in b29940c ("mm: rename and change semantics of nr_indirectly_reclaimable_bytes"). So skipping no longer works and /proc/vmstat has misformatted lines " 0". This patch simply shows debug counters "nr_tlb_remote_*" for UP. Link: http://lkml.kernel.org/r/155481488468.467.4295519102880913454.stgit@buzz Fixes: 58bc4c3 ("mm/vmstat.c: skip NR_TLB_REMOTE_FLUSH* properly") Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Roman Gushchin <guro@fb.com> Cc: Jann Horn <jannh@google.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3780384 commit e8277b3

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎mm/vmstat.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,13 +1274,8 @@ const char * const vmstat_text[] = {
12741274
#endif
12751275
#endif /* CONFIG_MEMORY_BALLOON */
12761276
#ifdef CONFIG_DEBUG_TLBFLUSH
1277-
#ifdef CONFIG_SMP
12781277
"nr_tlb_remote_flush",
12791278
"nr_tlb_remote_flush_received",
1280-
#else
1281-
"", /* nr_tlb_remote_flush */
1282-
"", /* nr_tlb_remote_flush_received */
1283-
#endif /* CONFIG_SMP */
12841279
"nr_tlb_local_flush_all",
12851280
"nr_tlb_local_flush_one",
12861281
#endif /* CONFIG_DEBUG_TLBFLUSH */

0 commit comments

Comments
 (0)