aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-01-14 20:36:20 -0800
committerGreg Wallace <greg@gregtwallace.com>2016-01-19 22:02:21 -0500
commitbf2ada1f12dac812d225e1eaacf9733ef232f718 (patch)
treebf31a97157a2ada5b4dac4c60173ff6b980423e6
parent964adc0741e9f30011761f6ac3831deee63d1e34 (diff)
downloadandroid_external_f2fs-tools-bf2ada1f12dac812d225e1eaacf9733ef232f718.tar.gz
android_external_f2fs-tools-bf2ada1f12dac812d225e1eaacf9733ef232f718.tar.bz2
android_external_f2fs-tools-bf2ada1f12dac812d225e1eaacf9733ef232f718.zip
fsck.f2fs: assign checkpoint pointer correctly
This patch fixes a bug that cp pointer is not assigned correctly. Change-Id: I6e3eb65e262e02e4da5b0c5228e38ee8508ac50c Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fsck/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck/mount.c b/fsck/mount.c
index 002a7cb..c4dfb0a 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -1725,6 +1725,7 @@ int f2fs_do_mount(struct f2fs_sb_info *sbi)
ERR_MSG("Checkpoint is polluted\n");
return -1;
}
+ cp = F2FS_CKPT(sbi);
print_ckpt_info(sbi);
@@ -1739,7 +1740,6 @@ int f2fs_do_mount(struct f2fs_sb_info *sbi)
config.bug_on = 0;
- cp = F2FS_CKPT(sbi);
sbi->total_valid_node_count = get_cp(valid_node_count);
sbi->total_valid_inode_count = get_cp(valid_inode_count);
sbi->user_block_count = get_cp(user_block_count);