mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
Subsystems (3)
[email protected]
maintainerPATCH 7/16 mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
From: Konstantin Khlebnikov <[email protected]>
Subject: mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
58bc4c34d249 ("mm/vmstat.c: skip NR_TLB_REMOTE_FLUSH* properly") depends on skipping vmstat entries with empty name introduced in 7aaf77272358 ("mm: don't show nr_indirectly_reclaimable in /proc/vmstat") but reverted in b29940c1abd7 ("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.
Fixes 58bc4c34d249 ("mm/vmstat.c: skip NR_TLB_REMOTE_FLUSH* properly")
Signed-off-by Konstantin Khlebnikov <[email protected]>
Acked-by Vlastimil Babka <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Jann Horn <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/vmstat.c | 5 ----- 1 file changed, 5 deletions(-)
mm/vmstat.c renamed from mm/vmstat.c~mm-vmstat-fix-proc-vmstat-format-for-config_debug_tlbflush=y-config_smp=n +0 -5
@@ -1274,13 +1274,8 @@ const char * const vmstat_text[] = {#endif #endif /* CONFIG_MEMORY_BALLOON */ #ifdef CONFIG_DEBUG_TLBFLUSH -#ifdef CONFIG_SMP"nr_tlb_remote_flush" ,"nr_tlb_remote_flush_received" , -#else - "", /* nr_tlb_remote_flush */ - "", /* nr_tlb_remote_flush_received */ -#endif /* CONFIG_SMP */"nr_tlb_local_flush_all" , "nr_tlb_local_flush_one", #endif /* CONFIG_DEBUG_TLBFLUSH */
_