]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix error path of f2fs_remount()
authorChao Yu <yuchao0@huawei.com>
Wed, 17 Mar 2021 09:56:04 +0000 (17:56 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 26 Mar 2021 01:20:51 +0000 (18:20 -0700)
commit06d1c1e7ace4e58d67cec662a1e85ea52dca7fdf
tree526666eb0bcdf644b12bb4bd3ed1d3bc08432c48
parentd6001c235acabb2fb4584c0aceadc9a3c170b5bd
f2fs: fix error path of f2fs_remount()

In error path of f2fs_remount(), it missed to restart/stop kernel thread
or enable/disable checkpoint, then mount option status may not be
consistent with real condition of filesystem, so let's reorder remount
flow a bit as below and do recovery correctly in error path:

1) handle gc thread
2) handle ckpt thread
3) handle flush thread
4) handle checkpoint disabling

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c