Commit f28e5034 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim

f2fs: use f2fs_radix_tree_insert to clean codes

No modification in functionality, just clean codes with f2fs_radix_tree_insert.
Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent d49f3e89
...@@ -356,11 +356,8 @@ static void add_gc_inode(struct gc_inode_list *gc_list, struct inode *inode) ...@@ -356,11 +356,8 @@ static void add_gc_inode(struct gc_inode_list *gc_list, struct inode *inode)
} }
new_ie = f2fs_kmem_cache_alloc(inode_entry_slab, GFP_NOFS); new_ie = f2fs_kmem_cache_alloc(inode_entry_slab, GFP_NOFS);
new_ie->inode = inode; new_ie->inode = inode;
retry:
if (radix_tree_insert(&gc_list->iroot, inode->i_ino, new_ie)) { f2fs_radix_tree_insert(&gc_list->iroot, inode->i_ino, new_ie);
cond_resched();
goto retry;
}
list_add_tail(&new_ie->list, &gc_list->ilist); list_add_tail(&new_ie->list, &gc_list->ilist);
} }
......
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