f2fs: fix to account preflush command for noflush_merge mode
authorChao Yu <yuchao0@huawei.com>
Wed, 24 Oct 2018 09:24:10 +0000 (17:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:51:48 +0000 (08:51 +0100)
commitc1054aeba939e7b14b1dc5137474fc38242cba11
treeff4b43988e12f0031b5f7d0c46f39e36cae26584
parent2ba4f54b60e149cf447bec8b7136e7f84b74eb26
f2fs: fix to account preflush command for noflush_merge mode

[ Upstream commit a8075dc484cf10ebdb07bee2b17322fb0a846309 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/segment.c