From 8a5491ecfdcd508a0af19058ad9e02cb9d6d0aaa Mon Sep 17 00:00:00 2001 From: James Wang Date: Wed, 23 Jun 2021 16:11:19 +0800 Subject: [PATCH 2934/2944] /proc/PID/smaps: consistent whitespace output format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to #35021957 commit 471e78cc7687337abd10626196f5addb30b01824 upstream [James] Only fix "THPeligible" The keys in smaps output are padded to fixed width with spaces. All except for THPeligible that uses tabs (only since commit c06306696f83 ("mm: thp: fix false negative of shmem vma's THP eligibility")). Unify the output formatting to save time debugging some naïve parsers. Signed-off-by: James Wang Reviewed-by: Xunlei Pang --- fs/proc/task_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index eb5cbe3..3d5bc28 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -800,7 +800,7 @@ static int show_smap(struct seq_file *m, void *v) __show_smap(m, &mss); - seq_printf(m, "THPeligible: %d\n", + seq_printf(m, "THPeligible: %d\n", transparent_hugepage_enabled(vma)); if (arch_pkeys_enabled()) -- 1.8.3.1