Lines Matching full:tcon
33 struct cifs_tcon *tcon; member
171 tconInfoFree(struct cifs_tcon *tcon, enum smb3_tcon_ref_trace trace) in tconInfoFree() argument
173 if (tcon == NULL) { in tconInfoFree()
177 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, trace); in tconInfoFree()
178 free_cached_dirs(tcon->cfids); in tconInfoFree()
180 kfree(tcon->nativeFileSystem); in tconInfoFree()
181 kfree_sensitive(tcon->password); in tconInfoFree()
182 kfree(tcon->origin_fullpath); in tconInfoFree()
183 kfree(tcon); in tconInfoFree()
286 struct cifs_tcon *tcon = NULL; in cifs_autodisable_serverino() local
289 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_autodisable_serverino()
298 tcon ? tcon->tree_name : "new server"); in cifs_autodisable_serverino()
371 * Assumes the tcon->open_file_lock is held.
540 cifs_close_all_deferred_files(struct cifs_tcon *tcon) in cifs_close_all_deferred_files() argument
546 spin_lock(&tcon->open_file_lock); in cifs_close_all_deferred_files()
547 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_all_deferred_files()
565 spin_unlock(&tcon->open_file_lock); in cifs_close_all_deferred_files()
581 struct cifs_tcon *tcon; in cifs_close_all_deferred_files_sb() local
589 tcon = tlink_tcon(tlink); in cifs_close_all_deferred_files_sb()
590 if (IS_ERR(tcon)) in cifs_close_all_deferred_files_sb()
595 tmp_list->tcon = tcon; in cifs_close_all_deferred_files_sb()
596 /* Take a reference on tcon to prevent it from being freed */ in cifs_close_all_deferred_files_sb()
597 spin_lock(&tcon->tc_lock); in cifs_close_all_deferred_files_sb()
598 ++tcon->tc_count; in cifs_close_all_deferred_files_sb()
599 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in cifs_close_all_deferred_files_sb()
601 spin_unlock(&tcon->tc_lock); in cifs_close_all_deferred_files_sb()
607 cifs_close_all_deferred_files(tmp_list->tcon); in cifs_close_all_deferred_files_sb()
609 cifs_put_tcon(tmp_list->tcon, netfs_trace_tcon_ref_put_close_defer_files); in cifs_close_all_deferred_files_sb()
614 void cifs_close_deferred_file_under_dentry(struct cifs_tcon *tcon, in cifs_close_deferred_file_under_dentry() argument
621 spin_lock(&tcon->open_file_lock); in cifs_close_deferred_file_under_dentry()
622 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_deferred_file_under_dentry()
639 spin_unlock(&tcon->open_file_lock); in cifs_close_deferred_file_under_dentry()
940 struct super_block *cifs_get_dfs_tcon_super(struct cifs_tcon *tcon) in cifs_get_dfs_tcon_super() argument
942 spin_lock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
943 if (!tcon->origin_fullpath) { in cifs_get_dfs_tcon_super()
944 spin_unlock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
947 spin_unlock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
948 return __cifs_get_super(tcon_super_cb, tcon); in cifs_get_dfs_tcon_super()
1009 struct cifs_tcon *tcon, in cifs_inval_name_dfs_link_error() argument
1014 struct TCP_Server_Info *server = tcon->ses->server; in cifs_inval_name_dfs_link_error()
1015 struct cifs_ses *ses = tcon->ses; in cifs_inval_name_dfs_link_error()
1024 * look up or tcon is not DFS. in cifs_inval_name_dfs_link_error()
1028 !is_tcon_dfs(tcon)) in cifs_inval_name_dfs_link_error()
1039 * Slow path - tcon is DFS and @full_path has prefix path, so attempt in cifs_inval_name_dfs_link_error()
1042 len = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1) + strlen(full_path) + 1; in cifs_inval_name_dfs_link_error()
1047 scnprintf(path, len, "%s%s", tcon->tree_name, full_path); in cifs_inval_name_dfs_link_error()