Lines Matching refs:tcon
157 tconInfoFree(struct cifs_tcon *tcon, enum smb3_tcon_ref_trace trace) in tconInfoFree() argument
159 if (tcon == NULL) { in tconInfoFree()
163 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, trace); in tconInfoFree()
164 free_cached_dirs(tcon->cfids); in tconInfoFree()
166 kfree(tcon->nativeFileSystem); in tconInfoFree()
167 kfree_sensitive(tcon->password); in tconInfoFree()
168 kfree(tcon->origin_fullpath); in tconInfoFree()
169 kfree(tcon); in tconInfoFree()
427 struct cifs_tcon *tcon; in is_valid_oplock_break() local
498 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in is_valid_oplock_break()
499 if (tcon->tid != buf->Tid) in is_valid_oplock_break()
502 cifs_stats_inc(&tcon->stats.cifs_stats.num_oplock_brks); in is_valid_oplock_break()
503 spin_lock(&tcon->open_file_lock); in is_valid_oplock_break()
504 list_for_each_entry(netfile, &tcon->openFileList, tlist) { in is_valid_oplock_break()
519 spin_unlock(&tcon->open_file_lock); in is_valid_oplock_break()
523 spin_unlock(&tcon->open_file_lock); in is_valid_oplock_break()
548 struct cifs_tcon *tcon = NULL; in cifs_autodisable_serverino() local
551 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_autodisable_serverino()
556 tcon ? tcon->tree_name : "new server"); in cifs_autodisable_serverino()
789 cifs_close_all_deferred_files(struct cifs_tcon *tcon) in cifs_close_all_deferred_files() argument
795 spin_lock(&tcon->open_file_lock); in cifs_close_all_deferred_files()
796 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_all_deferred_files()
811 spin_unlock(&tcon->open_file_lock); in cifs_close_all_deferred_files()
820 cifs_close_deferred_file_under_dentry(struct cifs_tcon *tcon, const char *path) in cifs_close_deferred_file_under_dentry() argument
829 spin_lock(&tcon->open_file_lock); in cifs_close_deferred_file_under_dentry()
830 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_deferred_file_under_dentry()
848 spin_unlock(&tcon->open_file_lock); in cifs_close_deferred_file_under_dentry()
1157 struct super_block *cifs_get_dfs_tcon_super(struct cifs_tcon *tcon) in cifs_get_dfs_tcon_super() argument
1159 spin_lock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
1160 if (!tcon->origin_fullpath) { in cifs_get_dfs_tcon_super()
1161 spin_unlock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
1164 spin_unlock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
1165 return __cifs_get_super(tcon_super_cb, tcon); in cifs_get_dfs_tcon_super()
1226 struct cifs_tcon *tcon, in cifs_inval_name_dfs_link_error() argument
1231 struct TCP_Server_Info *server = tcon->ses->server; in cifs_inval_name_dfs_link_error()
1232 struct cifs_ses *ses = tcon->ses; in cifs_inval_name_dfs_link_error()
1245 !is_tcon_dfs(tcon)) in cifs_inval_name_dfs_link_error()
1259 len = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1) + strlen(full_path) + 1; in cifs_inval_name_dfs_link_error()
1264 scnprintf(path, len, "%s%s", tcon->tree_name, full_path); in cifs_inval_name_dfs_link_error()