Lines Matching refs:tcon

151 tconInfoFree(struct cifs_tcon *tcon)  in tconInfoFree()  argument
153 if (tcon == NULL) { in tconInfoFree()
157 free_cached_dirs(tcon->cfids); in tconInfoFree()
159 kfree(tcon->nativeFileSystem); in tconInfoFree()
160 kfree_sensitive(tcon->password); in tconInfoFree()
162 dfs_put_root_smb_sessions(&tcon->dfs_ses_list); in tconInfoFree()
164 kfree(tcon->origin_fullpath); in tconInfoFree()
165 kfree(tcon); in tconInfoFree()
419 struct cifs_tcon *tcon; in is_valid_oplock_break() local
488 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in is_valid_oplock_break()
489 if (tcon->tid != buf->Tid) in is_valid_oplock_break()
492 cifs_stats_inc(&tcon->stats.cifs_stats.num_oplock_brks); in is_valid_oplock_break()
493 spin_lock(&tcon->open_file_lock); in is_valid_oplock_break()
494 list_for_each_entry(netfile, &tcon->openFileList, tlist) { in is_valid_oplock_break()
509 spin_unlock(&tcon->open_file_lock); in is_valid_oplock_break()
513 spin_unlock(&tcon->open_file_lock); in is_valid_oplock_break()
538 struct cifs_tcon *tcon = NULL; in cifs_autodisable_serverino() local
541 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_autodisable_serverino()
546 tcon ? tcon->tree_name : "new server"); in cifs_autodisable_serverino()
780 cifs_close_all_deferred_files(struct cifs_tcon *tcon) in cifs_close_all_deferred_files() argument
787 spin_lock(&tcon->open_file_lock); in cifs_close_all_deferred_files()
788 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_all_deferred_files()
803 spin_unlock(&tcon->open_file_lock); in cifs_close_all_deferred_files()
812 cifs_close_deferred_file_under_dentry(struct cifs_tcon *tcon, const char *path) in cifs_close_deferred_file_under_dentry() argument
822 spin_lock(&tcon->open_file_lock); in cifs_close_deferred_file_under_dentry()
823 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_deferred_file_under_dentry()
841 spin_unlock(&tcon->open_file_lock); in cifs_close_deferred_file_under_dentry()
1169 struct super_block *cifs_get_dfs_tcon_super(struct cifs_tcon *tcon) in cifs_get_dfs_tcon_super() argument
1171 spin_lock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
1172 if (!tcon->origin_fullpath) { in cifs_get_dfs_tcon_super()
1173 spin_unlock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
1176 spin_unlock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
1177 return __cifs_get_super(tcon_super_cb, tcon); in cifs_get_dfs_tcon_super()
1246 struct cifs_tcon *tcon, in cifs_inval_name_dfs_link_error() argument
1251 struct cifs_ses *ses = tcon->ses; in cifs_inval_name_dfs_link_error()
1264 !is_tcon_dfs(tcon)) in cifs_inval_name_dfs_link_error()
1267 spin_lock(&tcon->tc_lock); in cifs_inval_name_dfs_link_error()
1268 if (!tcon->origin_fullpath) { in cifs_inval_name_dfs_link_error()
1269 spin_unlock(&tcon->tc_lock); in cifs_inval_name_dfs_link_error()
1272 spin_unlock(&tcon->tc_lock); in cifs_inval_name_dfs_link_error()
1278 len = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1) + strlen(full_path) + 1; in cifs_inval_name_dfs_link_error()
1283 scnprintf(path, len, "%s%s", tcon->tree_name, full_path); in cifs_inval_name_dfs_link_error()