diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-06-21 22:46:23 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-07-27 11:03:56 +0200 |
commit | 83a3bfdb5a8a086290dff2c13409c7380b683a96 (patch) | |
tree | 708b16650dc813a32e4c6098f09907c53ea4050d /fs/f2fs/inode.c | |
parent | f2fs: keep meta pages in cp_error state (diff) | |
download | linux-83a3bfdb5a8a086290dff2c13409c7380b683a96.tar.xz linux-83a3bfdb5a8a086290dff2c13409c7380b683a96.zip |
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/inode.c')
-rw-r--r-- | fs/f2fs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index f121c864f4c0..f91dd017a65c 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -159,6 +159,9 @@ bool f2fs_inode_chksum_verify(struct f2fs_sb_info *sbi, struct page *page) struct f2fs_inode *ri; __u32 provided, calculated; + if (unlikely(is_sbi_flag_set(sbi, SBI_IS_SHUTDOWN))) + return true; + if (!f2fs_enable_inode_chksum(sbi, page) || PageDirty(page) || PageWriteback(page)) return true; |