Lines Matching refs:ses

95 static struct cifs_ses *find_ipc_from_server_path(struct cifs_ses **ses, const char *path)  in find_ipc_from_server_path()  argument
100 for (; *ses; ses++) { in find_ipc_from_server_path()
101 if (!strcasecmp(unc, (*ses)->tcon_ipc->treeName)) in find_ipc_from_server_path()
102 return *ses; in find_ipc_from_server_path()
757 static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses, const char *path, in get_dfs_referral() argument
768 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) in get_dfs_referral()
773 rc = ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs, cache_cp, in get_dfs_referral()
793 static int cache_refresh_path(const unsigned int xid, struct cifs_ses *ses, const char *path) in cache_refresh_path() argument
820 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in cache_refresh_path()
944 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses, const struct nls_table *cp, in dfs_cache_find() argument
956 rc = cache_refresh_path(xid, ses, npath); in dfs_cache_find()
1045 int dfs_cache_update_tgthint(const unsigned int xid, struct cifs_ses *ses, in dfs_cache_update_tgthint() argument
1060 rc = cache_refresh_path(xid, ses, npath); in dfs_cache_update_tgthint()
1190 void dfs_cache_add_refsrv_session(const uuid_t *mount_id, struct cifs_ses *ses) in dfs_cache_add_refsrv_session() argument
1194 if (WARN_ON_ONCE(!mount_id || uuid_is_null(mount_id) || !ses)) in dfs_cache_add_refsrv_session()
1203 mg->sessions[mg->num_sessions++] = ses; in dfs_cache_add_refsrv_session()
1351 if (target_share_equal(tcon->ses->server, dfs_cache_get_tgt_name(it), in mark_for_reconnect_if_needed()
1358 cifs_ses_mark_for_reconnect(tcon->ses); in mark_for_reconnect_if_needed()
1365 struct cifs_ses *ses; in __refresh_tcon() local
1374 ses = find_ipc_from_server_path(sessions, path); in __refresh_tcon()
1375 if (IS_ERR(ses)) { in __refresh_tcon()
1377 return PTR_ERR(ses); in __refresh_tcon()
1396 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in __refresh_tcon()
1422 struct TCP_Server_Info *server = tcon->ses->server; in refresh_tcon()
1456 server = tcon->ses->server; in dfs_cache_remount_fs()
1505 struct cifs_ses *ses; in refresh_mounts() local
1516 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in refresh_mounts()
1517 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in refresh_mounts()
1528 struct TCP_Server_Info *server = tcon->ses->server; in refresh_mounts()
1545 struct cifs_ses *ses; in refresh_cache() local
1584 ses = find_ipc_from_server_path(sessions, path); in refresh_cache()
1585 if (IS_ERR(ses)) in refresh_cache()
1589 rc = get_dfs_referral(xid, ses, path, &refs, &numrefs); in refresh_cache()