Skip to content

Commit

Permalink
f2fs: avoid redundant f2fs_flush after remount
Browse files Browse the repository at this point in the history
create_flush_cmd_control will create redundant issue_flush_thread after each
remount with flush_merge option.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
  • Loading branch information
Yunlong Song authored and Jaegeuk Kim committed Jul 7, 2017
1 parent 0cc091d commit d871cd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/f2fs/segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ int create_flush_cmd_control(struct f2fs_sb_info *sbi)

if (SM_I(sbi)->fcc_info) {
fcc = SM_I(sbi)->fcc_info;
if (fcc->f2fs_issue_flush)
return err;
goto init_thread;
}

Expand Down

0 comments on commit d871cd0

Please sign in to comment.