Lines Matching full:tcon
1115 static bool target_share_equal(struct cifs_tcon *tcon, const char *s1)
1117 struct TCP_Server_Info *server = tcon->ses->server;
1118 const char *s2 = &tcon->tree_name[1];
1142 static bool is_ses_good(struct cifs_tcon *tcon, struct cifs_ses *ses)
1169 ipc = cifs_setup_ipc(ses, tcon->seal);
1198 static void refresh_ses_referral(struct cifs_tcon *tcon, struct cifs_ses *ses)
1214 if (!is_ses_good(tcon, ses)) {
1230 static int __refresh_tcon_referral(struct cifs_tcon *tcon,
1246 if (target_share_equal(tcon, refs[i].node_name)) {
1267 cifs_signal_cifsd_for_reconnect(tcon->ses->server, true);
1272 static void refresh_tcon_referral(struct cifs_tcon *tcon, bool force_refresh)
1284 ses = tcon->ses;
1302 if (!is_ses_good(tcon, ses)) {
1310 rc = __refresh_tcon_referral(tcon, path, refs,
1331 struct cifs_tcon *tcon;
1336 tcon = cifs_sb_master_tcon(cifs_sb);
1338 spin_lock(&tcon->tc_lock);
1339 if (!tcon->origin_fullpath) {
1340 spin_unlock(&tcon->tc_lock);
1344 spin_unlock(&tcon->tc_lock);
1357 refresh_tcon_referral(tcon, true);
1361 /* Refresh all DFS referrals related to DFS tcon */
1364 struct cifs_tcon *tcon;
1367 tcon = container_of(work, struct cifs_tcon, dfs_cache_work.work);
1369 list_for_each_entry(ses, &tcon->dfs_ses_list, dlist)
1370 refresh_ses_referral(tcon, ses);
1371 refresh_tcon_referral(tcon, false);
1373 queue_delayed_work(dfscache_wq, &tcon->dfs_cache_work,