diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-02-13 01:09:54 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-02-13 01:09:54 +0300 |
commit | 938a184265d75ea474f1c6fe1da96a5196163789 (patch) | |
tree | dde246e72037ec10a7d8b9774ebda3a19037906e /fs | |
parent | d50dfc0c7df7bf037442045fbe63952ae0c4ce46 (diff) | |
download | linux-938a184265d75ea474f1c6fe1da96a5196163789.tar.xz |
f2fs: give a warning only for readonly partition
Let's allow mounting readonly partition. We're able to recovery later once we
have it as read-write back.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/super.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 4aa533cb4340..30d5abef4361 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3933,12 +3933,10 @@ try_onemore: * previous checkpoint was not done by clean system shutdown. */ if (f2fs_hw_is_readonly(sbi)) { - if (!is_set_ckpt_flags(sbi, CP_UMOUNT_FLAG)) { - err = -EROFS; + if (!is_set_ckpt_flags(sbi, CP_UMOUNT_FLAG)) f2fs_err(sbi, "Need to recover fsync data, but write access unavailable"); - goto free_meta; - } - f2fs_info(sbi, "write access unavailable, skipping recovery"); + else + f2fs_info(sbi, "write access unavailable, skipping recovery"); goto reset_checkpoint; } |