summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-10-23 23:48:49 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2017-11-05 16:41:43 -0800
commit1f227a3e215d3613ea6cbc2fbe29caafbcaa8f71 (patch)
tree30cf2c4cb3b9b33116511bc5d41be50081adbda7 /fs/f2fs/super.c
parentdca6951f5adc5262ae2689cf2656628b309eabd7 (diff)
downloadlinux-1f227a3e215d3613ea6cbc2fbe29caafbcaa8f71.tar.bz2
f2fs: stop all the operations by cp_error flag
This patch replaces to use cp_error flag instead of RDONLY for quota off. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 491dce39d47a..97fa81503e1f 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -859,6 +859,9 @@ int f2fs_sync_fs(struct super_block *sb, int sync)
struct f2fs_sb_info *sbi = F2FS_SB(sb);
int err = 0;
+ if (unlikely(f2fs_cp_error(sbi)))
+ return 0;
+
trace_f2fs_sync_fs(sb, sync);
if (unlikely(is_sbi_flag_set(sbi, SBI_POR_DOING)))