• Home
  • Raw
  • Download

Lines Matching refs:t

113 	struct dfs_cache_tgt *t, *n;  in free_tgts()  local
115 list_for_each_entry_safe(t, n, &ce->ce_tlist, t_list) { in free_tgts()
116 list_del(&t->t_list); in free_tgts()
117 kfree(t->t_name); in free_tgts()
118 kfree(t); in free_tgts()
163 struct dfs_cache_tgt *t; in dfscache_proc_show() local
181 list_for_each_entry(t, &ce->ce_tlist, t_list) { in dfscache_proc_show()
183 t->t_name, in dfscache_proc_show()
184 ce->ce_tgthint == t ? " (target hint)" : ""); in dfscache_proc_show()
231 struct dfs_cache_tgt *t; in dump_tgts() local
234 list_for_each_entry(t, &ce->ce_tlist, t_list) { in dump_tgts()
235 cifs_dbg(FYI, " %s%s\n", t->t_name, in dump_tgts()
236 ce->ce_tgthint == t ? " (target hint)" : ""); in dump_tgts()
330 struct dfs_cache_tgt *t = ce->ce_tgthint; in get_tgt_name() local
332 return t ? t->t_name : ERR_PTR(-ENOENT); in get_tgt_name()
351 struct dfs_cache_tgt *t; in alloc_tgt() local
353 t = kmalloc(sizeof(*t), GFP_KERNEL); in alloc_tgt()
354 if (!t) in alloc_tgt()
356 t->t_name = kstrndup(name, strlen(name), GFP_KERNEL); in alloc_tgt()
357 if (!t->t_name) { in alloc_tgt()
358 kfree(t); in alloc_tgt()
361 INIT_LIST_HEAD(&t->t_list); in alloc_tgt()
362 return t; in alloc_tgt()
381 struct dfs_cache_tgt *t; in copy_ref_data() local
383 t = alloc_tgt(refs[i].node_name); in copy_ref_data()
384 if (IS_ERR(t)) { in copy_ref_data()
386 return PTR_ERR(t); in copy_ref_data()
388 if (tgthint && !strcasecmp(t->t_name, tgthint)) { in copy_ref_data()
389 list_add(&t->t_list, &ce->ce_tlist); in copy_ref_data()
392 list_add_tail(&t->t_list, &ce->ce_tlist); in copy_ref_data()
765 struct dfs_cache_tgt *t; in get_tgt_list() local
771 list_for_each_entry(t, &ce->ce_tlist, t_list) { in get_tgt_list()
778 it->it_name = kstrndup(t->t_name, strlen(t->t_name), in get_tgt_list()
786 if (ce->ce_tgthint == t) in get_tgt_list()
933 struct dfs_cache_tgt *t; in dfs_cache_update_tgthint() local
953 t = ce->ce_tgthint; in dfs_cache_update_tgthint()
955 if (likely(!strcasecmp(it->it_name, t->t_name))) in dfs_cache_update_tgthint()
958 list_for_each_entry(t, &ce->ce_tlist, t_list) { in dfs_cache_update_tgthint()
959 if (!strcasecmp(t->t_name, it->it_name)) { in dfs_cache_update_tgthint()
960 ce->ce_tgthint = t; in dfs_cache_update_tgthint()
993 struct dfs_cache_tgt *t; in dfs_cache_noreq_update_tgthint() local
1014 t = ce->ce_tgthint; in dfs_cache_noreq_update_tgthint()
1016 if (unlikely(!strcasecmp(it->it_name, t->t_name))) in dfs_cache_noreq_update_tgthint()
1019 list_for_each_entry(t, &ce->ce_tlist, t_list) { in dfs_cache_noreq_update_tgthint()
1020 if (!strcasecmp(t->t_name, it->it_name)) { in dfs_cache_noreq_update_tgthint()
1021 ce->ce_tgthint = t; in dfs_cache_noreq_update_tgthint()