OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38435dd
)
f2fs: avoid redundant f2fs_flush after remount
author
Yunlong Song
<yunlong.song@huawei.com>
Sat, 24 Jun 2017 07:57:19 +0000
(15:57 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 13 Jul 2017 23:57:03 +0000
(16:57 -0700)
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>
fs/f2fs/segment.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/segment.c
b/fs/f2fs/segment.c
index
9b08a66
..
d73b4b2
100644
(file)
--- 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;
}