Lines Matching refs:numrefs
251 static inline void dump_refs(const struct dfs_info3_param *refs, int numrefs) in dump_refs() argument
256 for (i = 0; i < numrefs; i++) { in dump_refs()
383 static int copy_ref_data(const struct dfs_info3_param *refs, int numrefs, in copy_ref_data() argument
396 for (i = 0; i < numrefs; i++) { in copy_ref_data()
421 static struct cache_entry *alloc_cache_entry(struct dfs_info3_param *refs, int numrefs) in alloc_cache_entry() argument
436 rc = copy_ref_data(refs, numrefs, ce, NULL); in alloc_cache_entry()
474 int numrefs) in add_cache_entry_locked() argument
492 ce = alloc_cache_entry(refs, numrefs); in add_cache_entry_locked()
619 int numrefs) in update_cache_entry_locked() argument
637 rc = copy_ref_data(refs, numrefs, ce, th); in update_cache_entry_locked()
645 struct dfs_info3_param **refs, int *numrefs) in get_dfs_referral() argument
651 *numrefs = 0; in get_dfs_referral()
659 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral()
664 for (i = 0; i < *numrefs; i++) in get_dfs_referral()
688 int numrefs = 0; in cache_refresh_path() local
717 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in cache_refresh_path()
723 dump_refs(refs, numrefs); in cache_refresh_path()
730 rc = update_cache_entry_locked(ce, refs, numrefs); in cache_refresh_path()
735 ce = add_cache_entry_locked(refs, numrefs); in cache_refresh_path()
745 free_dfs_info_array(refs, numrefs); in cache_refresh_path()
1214 int numrefs, bool force_refresh) in __refresh_tcon_referral() argument
1221 if (unlikely(!numrefs)) in __refresh_tcon_referral()
1225 for (i = 0; i < numrefs; i++) { in __refresh_tcon_referral()
1238 rc = update_cache_entry_locked(ce, refs, numrefs); in __refresh_tcon_referral()
1240 ce = add_cache_entry_locked(refs, numrefs); in __refresh_tcon_referral()
1261 int numrefs = 0; in refresh_tcon_referral() local
1289 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in refresh_tcon_referral()
1292 numrefs, force_refresh); in refresh_tcon_referral()
1297 free_dfs_info_array(refs, numrefs); in refresh_tcon_referral()