提交 d871cd04 编写于 作者: Y Yunlong Song 提交者: Jaegeuk Kim

f2fs: avoid redundant f2fs_flush after remount

create_flush_cmd_control will create redundant issue_flush_thread after each
remount with flush_merge option.
Signed-off-by: NYunlong Song <yunlong.song@huawei.com>
Reviewed-by: NChao Yu <yuchao0@huawei.com>
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 0cc091d0
...@@ -555,6 +555,8 @@ int create_flush_cmd_control(struct f2fs_sb_info *sbi) ...@@ -555,6 +555,8 @@ int create_flush_cmd_control(struct f2fs_sb_info *sbi)
if (SM_I(sbi)->fcc_info) { if (SM_I(sbi)->fcc_info) {
fcc = SM_I(sbi)->fcc_info; fcc = SM_I(sbi)->fcc_info;
if (fcc->f2fs_issue_flush)
return err;
goto init_thread; goto init_thread;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册