summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-08-11 16:49:25 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2014-08-21 09:21:00 -0700
commit1e968fdfe69e4060f05fa04059ecad93a0284e32 (patch)
tree402e50b541688a5050fb7ef75ab1781ad8cd22e2 /fs/f2fs/super.c
parented2e621a95d704e6a4e904cc00524e8cbddda0c2 (diff)
downloadop-kernel-dev-1e968fdfe69e4060f05fa04059ecad93a0284e32.zip
op-kernel-dev-1e968fdfe69e4060f05fa04059ecad93a0284e32.tar.gz
f2fs: introduce f2fs_cp_error for readability
This patch adds f2fs_cp_error for readability. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index e161e13..8aabe3e 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -815,7 +815,7 @@ static int sanity_check_ckpt(struct f2fs_sb_info *sbi)
if (unlikely(fsmeta >= total))
return 1;
- if (unlikely(is_set_ckpt_flags(ckpt, CP_ERROR_FLAG))) {
+ if (unlikely(f2fs_cp_error(sbi))) {
f2fs_msg(sbi->sb, KERN_ERR, "A bug case: need to run fsck");
return 1;
}
OpenPOWER on IntegriCloud