Lines Matching refs:refs

250 static inline void dump_refs(const struct dfs_info3_param *refs, int numrefs)
256 const struct dfs_info3_param *ref = &refs[i];
382 static int copy_ref_data(const struct dfs_info3_param *refs, int numrefs,
388 ce->ttl = max_t(int, refs[0].ttl, CACHE_MIN_TTL);
390 ce->srvtype = refs[0].server_type;
391 ce->hdr_flags = refs[0].flags;
392 ce->ref_flags = refs[0].ref_flag;
393 ce->path_consumed = refs[0].path_consumed;
398 t = alloc_target(refs[i].node_name, refs[i].path_consumed);
420 static struct cache_entry *alloc_cache_entry(struct dfs_info3_param *refs, int numrefs)
429 ce->path = refs[0].path_name;
430 refs[0].path_name = NULL;
435 rc = copy_ref_data(refs, numrefs, ce, NULL);
475 static struct cache_entry *add_cache_entry_locked(struct dfs_info3_param *refs,
490 rc = cache_entry_hash(refs[0].path_name, strlen(refs[0].path_name), &hash);
494 ce = alloc_cache_entry(refs, numrefs);
619 /* Update a cache entry with the new referral in @refs */
620 static int update_cache_entry_locked(struct cache_entry *ce, const struct dfs_info3_param *refs,
639 rc = copy_ref_data(refs, numrefs, ce, th);
647 struct dfs_info3_param **refs, int *numrefs)
652 *refs = NULL;
661 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp,
664 struct dfs_info3_param *ref = *refs;
688 struct dfs_info3_param *refs = NULL;
719 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs);
725 dump_refs(refs, numrefs);
732 rc = update_cache_entry_locked(ce, refs, numrefs);
737 ce = add_cache_entry_locked(refs, numrefs);
747 free_dfs_info_array(refs, numrefs);
1133 * target shares in @refs.