diff options
author | Changman Lee <cm224.lee@samsung.com> | 2014-11-25 12:44:24 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-25 17:26:36 -0800 |
commit | 80ec2e914d7e1a1edb93d89cce96dd145c85636a (patch) | |
tree | 547a615934349bb3b0e787eb8617fcc8b6925e66 /fs/f2fs | |
parent | 20d047c87621090152c89f9581f78a69b02e0e35 (diff) |
f2fs: no more dirty_nat_entires when flushing
After flushing dirty nat entries, it has to be no more dirty nat
entries.
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/node.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 4af3feef2884..b1466cf79d07 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); } /* |