summaryrefslogtreecommitdiff
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-08-12 03:49:25 +0400
committerJaegeuk Kim <jaegeuk@kernel.org>2014-08-21 20:21:00 +0400
commit1e968fdfe69e4060f05fa04059ecad93a0284e32 (patch)
tree402e50b541688a5050fb7ef75ab1781ad8cd22e2 /fs/f2fs/gc.c
parented2e621a95d704e6a4e904cc00524e8cbddda0c2 (diff)
downloadlinux-1e968fdfe69e4060f05fa04059ecad93a0284e32.tar.xz
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/gc.c')
-rw-r--r--fs/f2fs/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index 87c50c507461..e8507b1c8759 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -693,7 +693,7 @@ int f2fs_gc(struct f2fs_sb_info *sbi)
gc_more:
if (unlikely(!(sbi->sb->s_flags & MS_ACTIVE)))
goto stop;
- if (unlikely(is_set_ckpt_flags(F2FS_CKPT(sbi), CP_ERROR_FLAG)))
+ if (unlikely(f2fs_cp_error(sbi)))
goto stop;
if (gc_type == BG_GC && has_not_enough_free_secs(sbi, nfree)) {