OSDN Git Service

f2fs: fix wrong error injection path in inc_valid_block_count()
authorChao Yu <yuchao0@huawei.com>
Fri, 23 Aug 2019 09:58:34 +0000 (17:58 +0800)
committer0ranko0P <ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:25 +0000 (04:42 +0800)
commit178bed68c582bb060e12f294f79bf3f5ac51f2a8
treeaed062f46fbeec42fde79d6a498e4bc42a8c23f6
parente534c6e3ab5d9aa11209c227df10dcbe1e1e1043
f2fs: fix wrong error injection path in inc_valid_block_count()

If FAULT_BLOCK type error injection is on, in inc_valid_block_count()
we may decrease sbi->alloc_valid_block_count percpu stat count
incorrectly, fix it.

Fixes: 36b877af7992 ("f2fs: Keep alloc_valid_block_count in sync")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h