diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 4af3feef288494a85d11dc37a471bf9b5d6f81c4..b1466cf79d07d68ef074598bfa4f9a0cb53378b3 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1925,10 +1925,10 @@ static void __flush_nat_entry_set(struct f2fs_sb_info *sbi, else f2fs_put_page(page, 1); - if (!set->entry_cnt) { - radix_tree_delete(&NM_I(sbi)->nat_set_root, set->set); - kmem_cache_free(nat_entry_set_slab, set); - } + f2fs_bug_on(sbi, set->entry_cnt); + + radix_tree_delete(&NM_I(sbi)->nat_set_root, set->set); + kmem_cache_free(nat_entry_set_slab, set); } /*