diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-01-23 20:37:53 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-02-11 17:04:35 -0800 |
commit | f28e503429644a794d9bf2793189ff0b0887eb21 (patch) | |
tree | cf6d3590433498c93e63a439c247b289b7215a03 | |
parent | d49f3e890290bd1db047d02335401026d1886472 (diff) | |
download | linux-rpi-f28e503429644a794d9bf2793189ff0b0887eb21.tar.gz linux-rpi-f28e503429644a794d9bf2793189ff0b0887eb21.tar.bz2 linux-rpi-f28e503429644a794d9bf2793189ff0b0887eb21.zip |
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 <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fs/f2fs/gc.c | 7 |
1 files changed, 2 insertions, 5 deletions
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); } |