diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 3df43b4efd89e96e971263e61369dee5d3e39b87..96415345a428097660269ade77a61d95283f7a1d 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1492,6 +1492,8 @@ int recover_inode_page(struct f2fs_sb_info *sbi, struct page *page) new_ni = old_ni; new_ni.ino = ino; + if (!inc_valid_node_count(sbi, NULL, 1)) + WARN_ON(1); set_node_addr(sbi, &new_ni, NEW_ADDR); inc_valid_inode_count(sbi);