Commit 938a1842 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

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: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent d50dfc0c
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -3933,11 +3933,9 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
		 * 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;
			}
			else
				f2fs_info(sbi, "write access unavailable, skipping recovery");
			goto reset_checkpoint;
		}