Skip to content

Commit 2be5fbf

Browse files
kiryltorvalds
authored andcommitted
proc/meminfo: fix output alignment
Patch series "Fixes for THP in page cache", v2. This patch (of 5): Add extra space for FileHugePages and FilePmdMapped, so the output is aligned with other rows. Link: http://lkml.kernel.org/r/[email protected] Fixes: 60fbf0a ("mm,thp: stats for file backed THP") Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Song Liu <[email protected]> Tested-by: Song Liu <[email protected]> Acked-by: Yang Shi <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Srikar Dronamraju <[email protected]> Cc: William Kucharski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent a2ae8c0 commit 2be5fbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/proc/meminfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
132132
global_node_page_state(NR_SHMEM_THPS) * HPAGE_PMD_NR);
133133
show_val_kb(m, "ShmemPmdMapped: ",
134134
global_node_page_state(NR_SHMEM_PMDMAPPED) * HPAGE_PMD_NR);
135-
show_val_kb(m, "FileHugePages: ",
135+
show_val_kb(m, "FileHugePages: ",
136136
global_node_page_state(NR_FILE_THPS) * HPAGE_PMD_NR);
137-
show_val_kb(m, "FilePmdMapped: ",
137+
show_val_kb(m, "FilePmdMapped: ",
138138
global_node_page_state(NR_FILE_PMDMAPPED) * HPAGE_PMD_NR);
139139
#endif
140140

0 commit comments

Comments
 (0)