Merge tag 'sh-for-v6.5-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubit...
[linux-2.6-microblaze.git] / fs / f2fs / checkpoint.c
index 64b3860..8fd3b7f 100644 (file)
@@ -30,12 +30,9 @@ void f2fs_stop_checkpoint(struct f2fs_sb_info *sbi, bool end_io,
                                                unsigned char reason)
 {
        f2fs_build_fault_attr(sbi, 0, 0);
-       set_ckpt_flags(sbi, CP_ERROR_FLAG);
-       if (!end_io) {
+       if (!end_io)
                f2fs_flush_merged_writes(sbi);
-
-               f2fs_handle_stop(sbi, reason);
-       }
+       f2fs_handle_critical_error(sbi, reason, end_io);
 }
 
 /*