]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
f2fs: let fill_super handle roll-forward errors
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 11 Aug 2017 00:35:04 +0000 (17:35 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 20 Sep 2017 12:23:45 +0000 (07:23 -0500)
commit1ceb6bf653e19038e1dcc43b9c7383d50edd73e2
tree139d11e909ac4139d9bbfe4f6fc215974d5ff4ea
parent599a47dab871dd88243904cf183e0277d3eb8fec
f2fs: let fill_super handle roll-forward errors

BugLink: http://bugs.launchpad.net/bugs/1718412
commit afd2b4da40b3b567ef8d8e6881479345a2312a03 upstream.

If we set CP_ERROR_FLAG in roll-forward error, f2fs is no longer to proceed
any IOs due to f2fs_cp_error(). But, for example, if some stale data is involved
on roll-forward process, we're able to get -ENOENT, getting fs stuck.
If we get any error, let fill_super set SBI_NEED_FSCK and try to recover back
to stable point.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/f2fs/recovery.c