diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-06-21 13:46:23 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-07-27 18:03:56 +0900 |
commit | 83a3bfdb5a8a086290dff2c13409c7380b683a96 (patch) | |
tree | 708b16650dc813a32e4c6098f09907c53ea4050d /fs/f2fs/checkpoint.c | |
parent | af697c0f5c5b8798832e651baf23460d588393de (diff) | |
download | linux-83a3bfdb5a8a086290dff2c13409c7380b683a96.tar.bz2 |
f2fs: indicate shutdown f2fs to allow unmount successfully
Once we shutdown f2fs, we have to flush stale pages in order to unmount
the system. In order to make stable, we need to stop fault injection as well.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index fe92d2372f4a..1a3ec978f1a6 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -28,6 +28,7 @@ struct kmem_cache *f2fs_inode_entry_slab; void f2fs_stop_checkpoint(struct f2fs_sb_info *sbi, bool end_io) { + f2fs_build_fault_attr(sbi, 0); set_ckpt_flags(sbi, CP_ERROR_FLAG); if (!end_io) f2fs_flush_merged_writes(sbi); |