diff options
author | Yunlong Song <yunlong.song@huawei.com> | 2017-06-24 15:57:19 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-07-07 10:34:41 -0700 |
commit | d871cd046f1a5ae816c836cf114d57288bcb00b2 (patch) | |
tree | 8b1bafba835cea9806125652861d86955d257f78 /fs/f2fs | |
parent | 0cc091d0c8c34092c471fb5ae7335d075d08c324 (diff) | |
download | linux-stable-d871cd046f1a5ae816c836cf114d57288bcb00b2.tar.gz linux-stable-d871cd046f1a5ae816c836cf114d57288bcb00b2.tar.bz2 linux-stable-d871cd046f1a5ae816c836cf114d57288bcb00b2.zip |
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 <yunlong.song@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/segment.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |