diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-10-24 05:24:10 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-11-26 18:53:55 -0500 |
commit | a8075dc484cf10ebdb07bee2b17322fb0a846309 (patch) | |
tree | 17d8bb04662e5cbcdf87d3b3c3db1789b7d5eaa7 | |
parent | 9bf1a3f73927492c8be127b642197125e9d52be8 (diff) |
f2fs: fix to account preflush command for noflush_merge mode
Previously, we only account preflush command for flush_merge mode,
so for noflush_merge mode, we can not know in-flight preflush
command count, fix it.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-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 6edcf8391dd3..d161f5a8b3d6 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c | |||
@@ -620,7 +620,9 @@ int f2fs_issue_flush(struct f2fs_sb_info *sbi, nid_t ino) | |||
620 | return 0; | 620 | return 0; |
621 | 621 | ||
622 | if (!test_opt(sbi, FLUSH_MERGE)) { | 622 | if (!test_opt(sbi, FLUSH_MERGE)) { |
623 | atomic_inc(&fcc->issing_flush); | ||
623 | ret = submit_flush_wait(sbi, ino); | 624 | ret = submit_flush_wait(sbi, ino); |
625 | atomic_dec(&fcc->issing_flush); | ||
624 | atomic_inc(&fcc->issued_flush); | 626 | atomic_inc(&fcc->issued_flush); |
625 | return ret; | 627 | return ret; |
626 | } | 628 | } |