diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-10-24 12:24:10 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-11-27 02:53:55 +0300 |
commit | a8075dc484cf10ebdb07bee2b17322fb0a846309 (patch) | |
tree | 17d8bb04662e5cbcdf87d3b3c3db1789b7d5eaa7 /fs/f2fs/segment.c | |
parent | 9bf1a3f73927492c8be127b642197125e9d52be8 (diff) | |
download | linux-a8075dc484cf10ebdb07bee2b17322fb0a846309.tar.xz |
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>
Diffstat (limited to 'fs/f2fs/segment.c')
-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) return 0; if (!test_opt(sbi, FLUSH_MERGE)) { + atomic_inc(&fcc->issing_flush); ret = submit_flush_wait(sbi, ino); + atomic_dec(&fcc->issing_flush); atomic_inc(&fcc->issued_flush); return ret; } |