From: Yunlong Song Date: Sat, 24 Jun 2017 07:57:19 +0000 (+0800) Subject: f2fs: avoid redundant f2fs_flush after remount X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d871cd046f1a5ae816c836cf114d57288bcb00b2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Yunlong Song Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 86a0c1095939..7637033ef87b 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -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; }