Lines Matching refs:nce
2038 struct name_cache_entry *nce) in name_cache_insert() argument
2044 (unsigned long)nce->ino); in name_cache_insert()
2048 kfree(nce); in name_cache_insert()
2053 ret = radix_tree_insert(&sctx->name_cache, nce->ino, nce_head); in name_cache_insert()
2056 kfree(nce); in name_cache_insert()
2060 list_add_tail(&nce->radix_list, nce_head); in name_cache_insert()
2061 list_add_tail(&nce->list, &sctx->name_cache_list); in name_cache_insert()
2068 struct name_cache_entry *nce) in name_cache_delete() argument
2073 (unsigned long)nce->ino); in name_cache_delete()
2077 nce->ino, sctx->name_cache_size); in name_cache_delete()
2080 list_del(&nce->radix_list); in name_cache_delete()
2081 list_del(&nce->list); in name_cache_delete()
2088 radix_tree_delete(&sctx->name_cache, (unsigned long)nce->ino); in name_cache_delete()
2114 static void name_cache_used(struct send_ctx *sctx, struct name_cache_entry *nce) in name_cache_used() argument
2116 list_del(&nce->list); in name_cache_used()
2117 list_add_tail(&nce->list, &sctx->name_cache_list); in name_cache_used()
2125 struct name_cache_entry *nce; in name_cache_clean_unused() local
2131 nce = list_entry(sctx->name_cache_list.next, in name_cache_clean_unused()
2133 name_cache_delete(sctx, nce); in name_cache_clean_unused()
2134 kfree(nce); in name_cache_clean_unused()
2140 struct name_cache_entry *nce; in name_cache_free() local
2143 nce = list_entry(sctx->name_cache_list.next, in name_cache_free()
2145 name_cache_delete(sctx, nce); in name_cache_free()
2146 kfree(nce); in name_cache_free()
2166 struct name_cache_entry *nce = NULL; in __get_cur_name_and_parent() local
2173 nce = name_cache_search(sctx, ino, gen); in __get_cur_name_and_parent()
2174 if (nce) { in __get_cur_name_and_parent()
2175 if (ino < sctx->send_progress && nce->need_later_update) { in __get_cur_name_and_parent()
2176 name_cache_delete(sctx, nce); in __get_cur_name_and_parent()
2177 kfree(nce); in __get_cur_name_and_parent()
2178 nce = NULL; in __get_cur_name_and_parent()
2180 name_cache_used(sctx, nce); in __get_cur_name_and_parent()
2181 *parent_ino = nce->parent_ino; in __get_cur_name_and_parent()
2182 *parent_gen = nce->parent_gen; in __get_cur_name_and_parent()
2183 ret = fs_path_add(dest, nce->name, nce->name_len); in __get_cur_name_and_parent()
2186 ret = nce->ret; in __get_cur_name_and_parent()
2241 nce = kmalloc(sizeof(*nce) + fs_path_len(dest) + 1, GFP_KERNEL); in __get_cur_name_and_parent()
2242 if (!nce) { in __get_cur_name_and_parent()
2247 nce->ino = ino; in __get_cur_name_and_parent()
2248 nce->gen = gen; in __get_cur_name_and_parent()
2249 nce->parent_ino = *parent_ino; in __get_cur_name_and_parent()
2250 nce->parent_gen = *parent_gen; in __get_cur_name_and_parent()
2251 nce->name_len = fs_path_len(dest); in __get_cur_name_and_parent()
2252 nce->ret = ret; in __get_cur_name_and_parent()
2253 strcpy(nce->name, dest->start); in __get_cur_name_and_parent()
2256 nce->need_later_update = 0; in __get_cur_name_and_parent()
2258 nce->need_later_update = 1; in __get_cur_name_and_parent()
2260 nce_ret = name_cache_insert(sctx, nce); in __get_cur_name_and_parent()
4028 struct name_cache_entry *nce; in process_recorded_refs() local
4067 nce = name_cache_search(sctx, ow_inode, ow_gen); in process_recorded_refs()
4068 if (nce) { in process_recorded_refs()
4069 name_cache_delete(sctx, nce); in process_recorded_refs()
4070 kfree(nce); in process_recorded_refs()