Commit b9c3bfc2 authored by Hugh Dickins's avatar Hugh Dickins Committed by Ingo Molnar

x86: align DirectMap in /proc/meminfo

Impact: right-align /proc/meminfo consistent with other fields

When the split-LRU patches added Inactive(anon) and Inactive(file) lines
to /proc/meminfo, all counts were moved two columns rightwards to fit in.
Now move x86's DirectMap lines two columns rightwards to line up.
Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 31f29714
...@@ -67,18 +67,18 @@ static void split_page_count(int level) ...@@ -67,18 +67,18 @@ static void split_page_count(int level)
void arch_report_meminfo(struct seq_file *m) void arch_report_meminfo(struct seq_file *m)
{ {
seq_printf(m, "DirectMap4k: %8lu kB\n", seq_printf(m, "DirectMap4k: %8lu kB\n",
direct_pages_count[PG_LEVEL_4K] << 2); direct_pages_count[PG_LEVEL_4K] << 2);
#if defined(CONFIG_X86_64) || defined(CONFIG_X86_PAE) #if defined(CONFIG_X86_64) || defined(CONFIG_X86_PAE)
seq_printf(m, "DirectMap2M: %8lu kB\n", seq_printf(m, "DirectMap2M: %8lu kB\n",
direct_pages_count[PG_LEVEL_2M] << 11); direct_pages_count[PG_LEVEL_2M] << 11);
#else #else
seq_printf(m, "DirectMap4M: %8lu kB\n", seq_printf(m, "DirectMap4M: %8lu kB\n",
direct_pages_count[PG_LEVEL_2M] << 12); direct_pages_count[PG_LEVEL_2M] << 12);
#endif #endif
#ifdef CONFIG_X86_64 #ifdef CONFIG_X86_64
if (direct_gbpages) if (direct_gbpages)
seq_printf(m, "DirectMap1G: %8lu kB\n", seq_printf(m, "DirectMap1G: %8lu kB\n",
direct_pages_count[PG_LEVEL_1G] << 20); direct_pages_count[PG_LEVEL_1G] << 20);
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment