Lines Matching defs:refs

285 static inline void dump_refs(const struct dfs_info3_param *refs, int numrefs)
291 const struct dfs_info3_param *ref = &refs[i];
417 static int copy_ref_data(const struct dfs_info3_param *refs, int numrefs,
426 t = alloc_target(refs[i].node_name, refs[i].path_consumed);
443 ce->ttl = max_t(int, refs[0].ttl, CACHE_MIN_TTL);
445 ce->srvtype = refs[0].server_type;
446 ce->hdr_flags = refs[0].flags;
447 ce->ref_flags = refs[0].ref_flag;
448 ce->path_consumed = refs[0].path_consumed;
455 static struct cache_entry *alloc_cache_entry(struct dfs_info3_param *refs, int numrefs)
464 ce->path = refs[0].path_name;
465 refs[0].path_name = NULL;
470 rc = copy_ref_data(refs, numrefs, ce, NULL);
507 static struct cache_entry *add_cache_entry_locked(struct dfs_info3_param *refs,
522 rc = cache_entry_hash(refs[0].path_name, strlen(refs[0].path_name), &hash);
526 ce = alloc_cache_entry(refs, numrefs);
651 /* Update a cache entry with the new referral in @refs */
652 static int update_cache_entry_locked(struct cache_entry *ce, const struct dfs_info3_param *refs,
670 rc = copy_ref_data(refs, numrefs, ce, th);
678 struct dfs_info3_param **refs, int *numrefs)
683 *refs = NULL;
692 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp,
695 struct dfs_info3_param *ref = *refs;
719 struct dfs_info3_param *refs = NULL;
750 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs);
756 dump_refs(refs, numrefs);
763 rc = update_cache_entry_locked(ce, refs, numrefs);
768 ce = add_cache_entry_locked(refs, numrefs);
778 free_dfs_info_array(refs, numrefs);
1263 struct dfs_info3_param *refs,
1277 if (target_share_equal(tcon, refs[i].node_name)) {
1288 rc = update_cache_entry_locked(ce, refs, numrefs);
1290 ce = add_cache_entry_locked(refs, numrefs);
1305 struct dfs_info3_param *refs = NULL;
1339 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs);
1341 rc = __refresh_tcon_referral(tcon, path, refs,
1347 free_dfs_info_array(refs, numrefs);