Skip to content

Commit 9f14127

Browse files
committed
Fix alignment of value in /proc/$pid/smaps
The /proc/$pid/smaps output has an alignment issue for the field FilePmdMapped and THPeligible. Increases the alignment of FilePmdMapped by 1 space, and converts the alignment of THPeligible to use spaces instead of tabs, to be consistent with the other fields.
1 parent fd69884 commit 9f14127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/proc/task_mmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ static void __show_smap(struct seq_file *m, const struct mem_size_stats *mss,
810810
SEQ_PUT_DEC(" kB\nLazyFree: ", mss->lazyfree);
811811
SEQ_PUT_DEC(" kB\nAnonHugePages: ", mss->anonymous_thp);
812812
SEQ_PUT_DEC(" kB\nShmemPmdMapped: ", mss->shmem_thp);
813-
SEQ_PUT_DEC(" kB\nFilePmdMapped: ", mss->file_thp);
813+
SEQ_PUT_DEC(" kB\nFilePmdMapped: ", mss->file_thp);
814814
SEQ_PUT_DEC(" kB\nShared_Hugetlb: ", mss->shared_hugetlb);
815815
seq_put_decimal_ull_width(m, " kB\nPrivate_Hugetlb: ",
816816
mss->private_hugetlb >> 10, 7);
@@ -840,7 +840,7 @@ static int show_smap(struct seq_file *m, void *v)
840840

841841
__show_smap(m, &mss, false);
842842

843-
seq_printf(m, "THPeligible: %d\n",
843+
seq_printf(m, "THPeligible: %d\n",
844844
transparent_hugepage_enabled(vma));
845845

846846
if (arch_pkeys_enabled())

0 commit comments

Comments
 (0)