From: Chao Yu Date: Fri, 23 Jan 2015 12:37:53 +0000 (+0800) Subject: f2fs: use f2fs_radix_tree_insert to clean codes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f28e503429644a794d9bf2793189ff0b0887eb21;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git f2fs: use f2fs_radix_tree_insert to clean codes No modification in functionality, just clean codes with f2fs_radix_tree_insert. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 40887d3c9d01..67860b6712f3 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -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->inode = inode; -retry: - if (radix_tree_insert(&gc_list->iroot, inode->i_ino, new_ie)) { - cond_resched(); - goto retry; - } + + f2fs_radix_tree_insert(&gc_list->iroot, inode->i_ino, new_ie); list_add_tail(&new_ie->list, &gc_list->ilist); }