Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb25e774 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: show current cp state



This patch shows whether checkpoint met any error case.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent bf85becc
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -266,9 +266,10 @@ static int stat_show(struct seq_file *s, void *v)


		update_general_status(si->sbi);
		update_general_status(si->sbi);


		seq_printf(s, "\n=====[ partition info(%s). #%d, %s]=====\n",
		seq_printf(s, "\n=====[ partition info(%s). #%d, %s, CP: %s]=====\n",
			bdevname(si->sbi->sb->s_bdev, devname), i++,
			bdevname(si->sbi->sb->s_bdev, devname), i++,
			f2fs_readonly(si->sbi->sb) ? "RO": "RW");
			f2fs_readonly(si->sbi->sb) ? "RO": "RW",
			f2fs_cp_error(si->sbi) ? "Error": "Good");
		seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ",
		seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ",
			   si->sit_area_segs, si->nat_area_segs);
			   si->sit_area_segs, si->nat_area_segs);
		seq_printf(s, "[SSA: %d] [MAIN: %d",
		seq_printf(s, "[SSA: %d] [MAIN: %d",