• Chao Yu's avatar
    f2fs: fix error path of f2fs_remount() · 3fd97359
    Chao Yu authored
    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: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    3fd97359
super.c 111 KB