diff options
author | Chao Yu | 2019-08-15 19:45:35 +0800 |
---|---|---|
committer | Jaegeuk Kim | 2019-08-23 07:57:13 -0700 |
commit | 33ac18a15c880d253565c08e8cec3ee4c8a76657 (patch) | |
tree | 574658f21a36c364dec4d666a799021eab00d989 /fs/f2fs/inode.c | |
parent | fd114ab22dd14ded1783b7f9b0aaddc14c098fe0 (diff) |
f2fs: use wrapped f2fs_cp_error()
Just cleanup, no logic change.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inode.c')
-rw-r--r-- | fs/f2fs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 5d78f2db7a67..88af85e0db62 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -706,7 +706,7 @@ no_delete: stat_dec_inline_dir(inode); stat_dec_inline_inode(inode); - if (likely(!is_set_ckpt_flags(sbi, CP_ERROR_FLAG) && + if (likely(!f2fs_cp_error(sbi) && !is_sbi_flag_set(sbi, SBI_CP_DISABLED))) f2fs_bug_on(sbi, is_inode_flag_set(inode, FI_DIRTY_INODE)); else |