Commit 812c6056 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim

f2fs: inject fault in inc_valid_node_count

This patch adds missing fault injection in inc_valid_node_count.
Signed-off-by: default avatarChao Yu <>
Signed-off-by: default avatarJaegeuk Kim <>
parent 28cfafb7
......@@ -1770,6 +1770,13 @@ static inline int inc_valid_node_count(struct f2fs_sb_info *sbi,
return ret;
if (time_to_inject(sbi, FAULT_BLOCK)) {
goto enospc;
valid_block_count = sbi->total_valid_block_count + 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment