diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-02-26 04:08:16 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-03-19 19:41:25 +0100 |
commit | a7e679b53393c76d4427f4085ec9d114f06cac5a (patch) | |
tree | 38f31a3050c1fca2e06034f7446ff05f1afcd40f /fs/f2fs/debug.c | |
parent | f2fs: Use scnprintf() for avoiding potential buffer overflow (diff) | |
download | linux-a7e679b53393c76d4427f4085ec9d114f06cac5a.tar.xz linux-a7e679b53393c76d4427f4085ec9d114f06cac5a.zip |
f2fs: show mounted time
Let's show mounted time.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r-- | fs/f2fs/debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 6b89eae5e4ca..0dbcb0f9c019 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c @@ -301,6 +301,9 @@ static int stat_show(struct seq_file *s, void *v) si->ssa_area_segs, si->main_area_segs); seq_printf(s, "(OverProv:%d Resv:%d)]\n\n", si->overp_segs, si->rsvd_segs); + seq_printf(s, "Current Time Sec: %llu / Mounted Time Sec: %llu\n\n", + ktime_get_boottime_seconds(), + SIT_I(si->sbi)->mounted_time); if (test_opt(si->sbi, DISCARD)) seq_printf(s, "Utilization: %u%% (%u valid blocks, %u discard blocks)\n", si->utilization, si->valid_count, si->discard_blks); |