Skip to contentSkip to conversation

f2fs: show checkpoint version at mount time

PATCH New Jaegeuk Kim 1 participant 1 message Feb 9, 2017

Subsystems (2)
lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 f2fs: show checkpoint version at mount time

If we mounted f2fs successfully, let's show current checkpoint version.

---
 fs/f2fs/super.c | 2 ++
 1 file changed, 2 insertions(+)
fs/f2fs/super.c +2 -0
index 68a555b014cf..bd24a98cf5d4 100644
@@ -2100,6 +2100,8 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
 			sbi->valid_super_block ? 1 : 2, err);
 	}
 
+	f2fs_msg(sbi->sb, KERN_NOTICE, "Mounted with checkpoint version = %llx",
+				cur_cp_version(F2FS_CKPT(sbi)));
 	f2fs_update_time(sbi, CP_TIME);
 	f2fs_update_time(sbi, REQ_TIME);
 	return 0;
Signature · 1 line
2.11.0