summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
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/f2fs.h
parented2e621a95d704e6a4e904cc00524e8cbddda0c2 (diff)
downloadlinux-1e968fdfe69e4060f05fa04059ecad93a0284e32.tar.gz
linux-1e968fdfe69e4060f05fa04059ecad93a0284e32.tar.bz2
linux-1e968fdfe69e4060f05fa04059ecad93a0284e32.zip
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/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index cc89a7f490a6..2d009aed0c2e 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -1096,6 +1096,11 @@ static inline int f2fs_readonly(struct super_block *sb)
return sb->s_flags & MS_RDONLY;
}
+static inline bool f2fs_cp_error(struct f2fs_sb_info *sbi)
+{
+ return is_set_ckpt_flags(sbi->ckpt, CP_ERROR_FLAG);
+}
+
static inline void f2fs_stop_checkpoint(struct f2fs_sb_info *sbi)
{
set_ckpt_flags(sbi->ckpt, CP_ERROR_FLAG);