From: Lei Feng Date: Thu, 2 Feb 2023 01:39:03 +0000 (+0800) Subject: LU-16523 lprocfs: adjust the format of rename_stats X-Git-Tag: 2.15.3-RC1~85 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F70%2F49870%2F3;p=fs%2Flustre-release.git LU-16523 lprocfs: adjust the format of rename_stats Adjust the format of rename_stats to a more human-friendly YAML. Lustre-change: https://review.whamcloud.com/49869 Lustre-commit: 73b5d7db7e8d3ede42524fc447fb30fa05ea7a3f Fixes: bedb797c5d ("LU-16110 lprocfs: make job_stats and rename_stats valid YAML") Signed-off-by: Lei Feng Test-Parameters: trivial Change-Id: I20e6d07c974e907bb2e30412dd1899f845de2021 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49870 Reviewed-by: Oleg Drokin Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- diff --git a/lustre/mdt/mdt_lproc.c b/lustre/mdt/mdt_lproc.c index 02eda11..9ae3013 100644 --- a/lustre/mdt/mdt_lproc.c +++ b/lustre/mdt/mdt_lproc.c @@ -115,9 +115,9 @@ static int mdt_rename_stats_seq_show(struct seq_file *seq, void *v) struct rename_stats *rename_stats = &mdt->mdt_rename_stats; /* this sampling races with updates */ - seq_puts(seq, "rename_stats:\n-\n"); + seq_puts(seq, "rename_stats:\n"); lprocfs_stats_header(seq, ktime_get_real(), rename_stats->rs_init, 15, - ":", false, " "); + ":", false, "- "); display_rename_stats(seq, "same_dir", &rename_stats->rs_hist[RENAME_SAMEDIR_SIZE]);