• Home
  • Raw
  • Download

Lines Matching refs:refs

362 static inline void dump_refs(const struct dfs_info3_param *refs, int numrefs)  in dump_refs()  argument
368 const struct dfs_info3_param *ref = &refs[i]; in dump_refs()
491 static int copy_ref_data(const struct dfs_info3_param *refs, int numrefs, in copy_ref_data() argument
496 ce->ttl = max_t(int, refs[0].ttl, CACHE_MIN_TTL); in copy_ref_data()
498 ce->srvtype = refs[0].server_type; in copy_ref_data()
499 ce->hdr_flags = refs[0].flags; in copy_ref_data()
500 ce->ref_flags = refs[0].ref_flag; in copy_ref_data()
501 ce->path_consumed = refs[0].path_consumed; in copy_ref_data()
506 t = alloc_target(refs[i].node_name, refs[i].path_consumed); in copy_ref_data()
527 static struct cache_entry *alloc_cache_entry(struct dfs_info3_param *refs, int numrefs) in alloc_cache_entry() argument
536 ce->path = refs[0].path_name; in alloc_cache_entry()
537 refs[0].path_name = NULL; in alloc_cache_entry()
542 rc = copy_ref_data(refs, numrefs, ce, NULL); in alloc_cache_entry()
582 static int add_cache_entry_locked(struct dfs_info3_param *refs, int numrefs) in add_cache_entry_locked() argument
595 rc = cache_entry_hash(refs[0].path_name, strlen(refs[0].path_name), &hash); in add_cache_entry_locked()
599 ce = alloc_cache_entry(refs, numrefs); in add_cache_entry_locked()
732 static int update_cache_entry_locked(struct cache_entry *ce, const struct dfs_info3_param *refs, in update_cache_entry_locked() argument
750 rc = copy_ref_data(refs, numrefs, ce, th); in update_cache_entry_locked()
758 struct dfs_info3_param **refs, int *numrefs) in get_dfs_referral() argument
765 *refs = NULL; in get_dfs_referral()
773 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral()
776 struct dfs_info3_param *ref = *refs; in get_dfs_referral()
795 struct dfs_info3_param *refs = NULL; in cache_refresh_path() local
821 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in cache_refresh_path()
825 dump_refs(refs, numrefs); in cache_refresh_path()
832 rc = update_cache_entry_locked(ce, refs, numrefs); in cache_refresh_path()
834 rc = add_cache_entry_locked(refs, numrefs); in cache_refresh_path()
839 free_dfs_info_array(refs, numrefs); in cache_refresh_path()
1362 const struct dfs_info3_param *refs, int numrefs) in mark_for_reconnect_if_needed() argument
1370 refs[i].node_name)) in mark_for_reconnect_if_needed()
1385 struct dfs_info3_param *refs = NULL; in __refresh_tcon() local
1414 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in __refresh_tcon()
1419 dump_refs(refs, numrefs); in __refresh_tcon()
1424 add_cache_entry_locked(refs, numrefs); in __refresh_tcon()
1426 update_cache_entry_locked(ce, refs, numrefs); in __refresh_tcon()
1429 mark_for_reconnect_if_needed(tcon, &tl, refs, numrefs); in __refresh_tcon()
1434 free_dfs_info_array(refs, numrefs); in __refresh_tcon()
1606 struct dfs_info3_param *refs = NULL; in refresh_cache() local
1618 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in refresh_cache()
1629 update_cache_entry_locked(ce, refs, numrefs); in refresh_cache()
1635 free_dfs_info_array(refs, numrefs); in refresh_cache()