diff options
author | Chao Yu <yuchao0@huawei.com> | 2019-08-15 13:45:35 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-08-23 16:57:13 +0200 |
commit | 33ac18a15c880d253565c08e8cec3ee4c8a76657 (patch) | |
tree | 574658f21a36c364dec4d666a799021eab00d989 /fs | |
parent | f2fs: fix to use more generic EOPNOTSUPP (diff) | |
download | linux-33ac18a15c880d253565c08e8cec3ee4c8a76657.tar.xz linux-33ac18a15c880d253565c08e8cec3ee4c8a76657.zip |
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')
-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 |