Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

f2fs: continue to mount after failing recovery

When unable to roll forward the journal, we shouldn't bail out and
not mount, we should continue to attempt the mount. Bad recovery data
is likely unrecoverable at this point, and requiring the user to try
to mount again doesn't solve any issues.

Signed-off-by: Chris Fries <C.Fries@motorola.com>
Reviewed-by: Russell Knize <rknize2@motorola.com>
Reviewed-by: Jason Hrycay <jason.hrycay@motorola.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>

authored by

Chris Fries and committed by
Jaegeuk Kim
bde582b2 531ad7d5

+3 -4
+3 -4
fs/f2fs/super.c
··· 669 669 /* recover fsynced data */ 670 670 if (!test_opt(sbi, DISABLE_ROLL_FORWARD)) { 671 671 err = recover_fsync_data(sbi); 672 - if (err) { 673 - f2fs_msg(sb, KERN_ERR, "Failed to recover fsync data"); 674 - goto free_root_inode; 675 - } 672 + if (err) 673 + f2fs_msg(sb, KERN_ERR, 674 + "Cannot recover all fsync data errno=%ld", err); 676 675 } 677 676 678 677 /* After POR, we can run background GC thread */