Home
last modified time | relevance | path

Searched refs:tcon (Results 1 – 25 of 52) sorted by relevance

123

/fs/smb/client/
A Dioctl.c122 tcon_inf.tid = tcon->tid; in smb_mnt_get_tcon_info()
171 struct cifs_tcon *tcon; in cifs_shutdown() local
184 tcon = tlink_tcon(tlink); in cifs_shutdown()
258 ses = tcon->ses; in cifs_dump_full_key()
356 struct cifs_tcon *tcon; in cifs_ioctl() local
432 xid, tcon, pSMBFile); in cifs_ioctl()
448 tcon, pSMBFile); in cifs_ioctl()
465 tcon = tlink_tcon(tlink); in cifs_ioctl()
478 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl()
555 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl()
[all …]
A Dsmb1ops.c543 struct cifs_tcon *tcon, in cifs_query_path_info() argument
584 if (!(tcon->ses->capabilities & tcon->ses->server->vals->cap_nt_find)) in cifs_query_path_info()
592 if (!(tcon->ses->capabilities & tcon->ses->server->vals->cap_nt_find)) { in cifs_query_path_info()
711 if (tcon && !(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) in cifs_get_srv_inum()
907 struct cifs_tcon *tcon; in smb_set_file_info() local
923 tcon = tlink_tcon(tlink); in smb_set_file_info()
974 .tcon = tcon, in smb_set_file_info()
1181 if (!cap_unix(tcon->ses)) in cifs_query_symlink()
1237 if (tcon->unix_ext) { in cifs_make_node()
1296 struct cifs_tcon *tcon; in cifs_is_network_name_deleted() local
[all …]
A Dfscache.c26 struct cifs_tcon *tcon, in cifs_fscache_fill_volume_coherency() argument
46 if (tcon->fscache_acquired) in cifs_fscache_get_super_cookie()
49 mutex_lock(&tcon->fscache_lock); in cifs_fscache_get_super_cookie()
50 if (tcon->fscache_acquired) { in cifs_fscache_get_super_cookie()
54 tcon->fscache_acquired = true; in cifs_fscache_get_super_cookie()
56 tcon->fscache = NULL; in cifs_fscache_get_super_cookie()
97 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in cifs_fscache_get_super_cookie()
100 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in cifs_fscache_get_super_cookie()
104 tcon->fscache = vcookie; in cifs_fscache_get_super_cookie()
122 tcon->fscache = NULL; in cifs_fscache_release_super_cookie()
[all …]
A Dsmb2proto.h60 struct cifs_tcon *tcon,
66 struct cifs_tcon *tcon,
72 struct cifs_tcon *tcon,
83 umode_t mode, struct cifs_tcon *tcon,
87 umode_t mode, struct cifs_tcon *tcon,
98 struct cifs_tcon *tcon,
103 struct cifs_tcon *tcon,
153 const char *tree, struct cifs_tcon *tcon,
197 struct cifs_tcon *tcon,
303 struct cifs_tcon *tcon,
[all …]
A Dsmb2inode.c184 struct cifs_ses *ses = tcon->ses; in smb2_compound_op()
646 tcon->need_reconnect = true; in smb2_compound_op()
936 struct cifs_tcon *tcon, in smb2_query_path_info() argument
962 if (!tcon->posix_extensions) { in smb2_query_path_info()
1027 if (tcon->posix_extensions) in smb2_query_path_info()
1063 if (!tcon->posix_extensions) in smb2_query_path_info()
1222 struct cifs_tcon *tcon, in smb2_rename_path() argument
1246 struct cifs_tcon *tcon, in smb2_create_hardlink() argument
1298 struct cifs_tcon *tcon; in smb2_set_file_info() local
1311 tcon = tlink_tcon(tlink); in smb2_set_file_info()
[all …]
A Ddfs.c206 struct cifs_tcon *tcon; in __dfs_mount_share() local
230 tcon = mnt_ctx->tcon; in __dfs_mount_share()
231 spin_lock(&tcon->tc_lock); in __dfs_mount_share()
374 tcon, tcon->ses->local_nls); in tree_connect_dfs_target()
398 spin_lock(&tcon->tc_lock); in cifs_tree_connect()
401 if (tcon->need_reconnect) in cifs_tree_connect()
424 if (tcon->ipc) { in cifs_tree_connect()
429 tcon, tcon->ses->local_nls); in cifs_tree_connect()
440 rc = ops->tree_connect(xid, tcon->ses, tcon->tree_name, in cifs_tree_connect()
441 tcon, tcon->ses->local_nls); in cifs_tree_connect()
[all …]
A Dcifs_swn.c32 struct cifs_tcon *tcon; member
50 if (tcon->ses->user_name != NULL) { in cifs_swn_auth_info_ntlm()
56 if (tcon->ses->password != NULL) { in cifs_swn_auth_info_ntlm()
62 if (tcon->ses->domainName != NULL) { in cifs_swn_auth_info_ntlm()
141 authtype = cifs_select_sectype(swnreg->tcon->ses->server, swnreg->tcon->ses->sectype); in cifs_swn_send_register_message()
313 reg = cifs_find_swn_reg(tcon); in cifs_get_swn_reg()
356 reg->tcon = tcon; in cifs_get_swn_reg()
483 ret = cifs_swn_unregister(tcon); in cifs_swn_reconnect()
494 ret = cifs_swn_register(tcon); in cifs_swn_reconnect()
594 swnreg = cifs_get_swn_reg(tcon); in cifs_swn_register()
[all …]
A Dsmb2pdu.c80 if (!tcon || !tcon->ses) in smb3_encryption_required()
134 if (!tcon) in smb2_hdr_assemble()
427 if (!tcon->ipc && !tcon->dummy) in smb2_reconnect()
3197 struct cifs_tcon *tcon = oparms->tcon; in SMB2_open() local
4395 struct cifs_tcon *tcon = io_parms->tcon; in smb3_use_rdma_offload() local
4610 tcon->tid, tcon->ses->Suid, in smb2_readv_callback()
4619 tcon->tid, tcon->ses->Suid, in smb2_readv_callback()
4922 tcon->tid, tcon->ses->Suid, in smb2_writev_callback()
4958 .tcon = tcon, in smb2_async_writev()
5162 io_parms->tcon->tid, io_parms->tcon->ses->Suid, in SMB2_write()
[all …]
A Dcifsproto.h82 struct cifs_tcon *tcon,
380 struct cifs_tcon *tcon,
407 struct cifs_tcon *tcon);
425 struct cifs_tcon *tcon,
447 struct cifs_tcon *tcon,
483 struct cifs_tcon *tcon,
488 struct cifs_tcon *tcon,
492 struct cifs_tcon *tcon,
496 struct cifs_tcon *tcon,
714 struct cifs_tcon *tcon,
[all …]
A Ddir.c212 if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open &&
340 .tcon = tcon,
401 if (tcon->unix_ext)
464 struct cifs_tcon *tcon; local
514 tcon = tlink_tcon(tlink);
587 struct cifs_tcon *tcon; local
630 struct cifs_tcon *tcon; local
655 trace_smb3_mknod_enter(xid, tcon->tid, tcon->ses->Suid, full_path);
657 rc = tcon->ses->server->ops->make_node(xid, inode, direntry, tcon,
663 trace_smb3_mknod_err(xid, tcon->tid, tcon->ses->Suid, rc);
[all …]
A Dsmb2misc.c614 struct cifs_tcon *tcon; in smb2_is_valid_lease_break() local
677 struct cifs_tcon *tcon; in smb2_is_valid_oplock_break() local
756 struct cifs_tcon *tcon = cancelled->tcon; in smb2_cancelled_close_fid() local
794 cancelled->tcon = tcon; in __smb2_handle_cancelled_cmd()
811 if (tcon->tc_count <= 0) { in smb2_handle_cancelled_close()
814 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_handle_cancelled_close()
819 if (tcon->ses) { in smb2_handle_cancelled_close()
828 tcon->tc_count++; in smb2_handle_cancelled_close()
829 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_handle_cancelled_close()
846 struct cifs_tcon *tcon; in smb2_handle_cancelled_mid() local
[all …]
A Dconnect.c2585 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in cifs_find_tcon()
2606 if (tcon == NULL || tcon->ipc) in cifs_put_tcon()
2688 if (tcon) { in cifs_get_tcon()
2896 return tcon; in cifs_get_tcon()
3782 mnt_ctx->tcon = tcon; in cifs_mount_get_tcon()
3874 struct cifs_tcon *tcon = mnt_ctx->tcon; in cifs_is_path_remote() local
4126 if (tcon->need_reconnect && tcon->unix_ext) { in CIFSTCon()
4158 if (tcon) { in cifs_umount()
4466 return tcon; in cifs_construct_tcon()
4686 rc = ops->tree_connect(xid, tcon->ses, tcon->tree_name, in cifs_tree_connect()
[all …]
A Dlink.c179 rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, in create_mf_symlink()
214 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in check_mf_symlink()
265 .tcon = tcon, in cifs_query_mf_symlink()
286 io_parms.tcon = tcon; in cifs_query_mf_symlink()
308 .tcon = tcon, in cifs_create_mf_symlink()
323 io_parms.tcon = tcon; in cifs_create_mf_symlink()
351 .tcon = tcon, in smb3_query_mf_symlink()
385 io_parms.tcon = tcon; in smb3_query_mf_symlink()
419 .tcon = tcon, in smb3_create_mf_symlink()
438 io_parms.tcon = tcon; in smb3_create_mf_symlink()
[all …]
A Dsmb2ops.c877 .tcon = tcon, in smb3_qfs_tcon()
921 .tcon = tcon, in smb2_qfs_tcon()
969 .tcon = tcon, in smb2_is_path_accessible()
1264 .tcon = tcon, in smb2_set_ea()
1633 .tcon = tcon, in smb2_ioctl_query_info()
2298 .tcon = tcon, in smb3_notify()
2377 .tcon = tcon, in smb2_query_dir_first()
2735 .tcon = tcon, in smb2_query_info_compound()
2885 .tcon = tcon, in smb311_queryfs()
3115 .tcon = tcon, in get_smb2_acl_by_path()
[all …]
A Dfile.c480 struct cifs_tcon *tcon; in cifs_posix_open() local
591 .tcon = tcon, in cifs_nt_open()
613 if (tcon->unix_ext) in cifs_nt_open()
955 struct cifs_tcon *tcon; in cifs_open() local
1031 if (!tcon->broken_posix_open && tcon->unix_ext && in cifs_open()
1165 struct cifs_tcon *tcon; in cifs_reopen_file() local
1214 if (tcon->unix_ext && cap_unix(tcon->ses) && in cifs_reopen_file()
1257 .tcon = tcon, in cifs_reopen_file()
1427 if (!tcon->use_persistent || !tcon->need_reopen_files) in cifs_reopen_persistent_handles()
2352 tcon->ses->server); in cifs_flock()
[all …]
A Dcifsfs.c204 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
247 tcon->ses->server->ops->negotiate_rsize(tcon, cifs_sb->ctx); in cifs_read_super()
262 if (tcon->nocase) in cifs_read_super()
598 if (tcon->ses->domainName && tcon->ses->domainName[0] != 0) in cifs_show_options()
643 if (tcon->seal) in cifs_show_options()
647 if (tcon->nocase) in cifs_show_options()
655 if (tcon->retry) in cifs_show_options()
794 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in cifs_umount_begin()
796 if ((tcon->tc_count > 1) || (tcon->status == TID_EXITING)) { in cifs_umount_begin()
814 if (tcon->ses && tcon->ses->server) { in cifs_umount_begin()
[all …]
A Dcifssmb.c82 if (!tcon) in cifs_reconnect_tcon()
85 ses = tcon->ses; in cifs_reconnect_tcon()
242 tcon, wct); in small_smb_init()
538 if ((tcon->ses == NULL) || (tcon->ses->server == NULL)) in CIFSSMBTDis()
1187 struct cifs_tcon *tcon = oparms->tcon; in CIFS_open() local
1464 struct cifs_tcon *tcon = io_parms->tcon; in CIFSSMBRead() local
1572 struct cifs_tcon *tcon = io_parms->tcon; in CIFSSMBWrite() local
1855 struct cifs_tcon *tcon = io_parms->tcon; in CIFSSMBWrite2() local
2758 .tcon = tcon, in cifs_query_reparse_point()
2908 tcon, in cifs_create_reparse_inode()
[all …]
A Dinode.c560 .tcon = tcon, in cifs_sfu_type()
583 io_parms.tcon = tcon; in cifs_sfu_type()
696 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_sfu_type()
728 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path, in cifs_sfu_mode()
935 if (!tcon->unix_ext) in cifs_open_info_to_fattr()
1079 if (tcon->unix_ext) in cifs_backup_query_path_info()
1820 .tcon = tcon, in cifs_rename_pending_delete()
2150 tcon, xid);
2442 .tcon = tcon,
2994 if (tcon == NULL) {
[all …]
A Dcifs_debug.c95 seq_printf(m, "%s Mounts: %d ", tcon->tree_name, tcon->tc_count); in cifs_debug_tcon()
102 tcon->status); in cifs_debug_tcon()
112 if ((tcon->seal) || in cifs_debug_tcon()
116 if (tcon->nocase) in cifs_debug_tcon()
118 if (tcon->unix_ext) in cifs_debug_tcon()
121 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
122 if (tcon->use_witness) in cifs_debug_tcon()
240 struct cifs_tcon *tcon; in cifs_debug_files_proc_show() local
261 tcon->tid, in cifs_debug_files_proc_show()
289 struct cifs_tcon *tcon; in cifs_debug_dirs_proc_show() local
[all …]
A Dcached_dir.c163 if (tcon == NULL) in open_cached_dir()
166 ses = tcon->ses; in open_cached_dir()
167 cfids = tcon->cfids; in open_cached_dir()
250 cfid->tcon = tcon; in open_cached_dir()
274 .tcon = tcon, in open_cached_dir()
506 if (IS_ERR(tcon)) in close_all_cached_dirs()
508 cfids = tcon->cfids; in close_all_cached_dirs()
592 struct cifs_tcon *tcon = cfid->tcon; in cached_dir_offload_close() local
646 ++tcon->tc_count; in cached_dir_lease_break()
647 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in cached_dir_lease_break()
[all …]
A Dnamespace.c126 spin_lock(&tcon->tc_lock); in is_dfs_mount()
127 ret = !!tcon->origin_fullpath; in is_dfs_mount()
128 spin_unlock(&tcon->tc_lock); in is_dfs_mount()
140 spin_lock(&tcon->tc_lock); in automount_fullpath()
141 if (!tcon->origin_fullpath) { in automount_fullpath()
142 spin_unlock(&tcon->tc_lock); in automount_fullpath()
147 spin_unlock(&tcon->tc_lock); in automount_fullpath()
159 spin_lock(&tcon->tc_lock); in automount_fullpath()
160 len = strlen(tcon->origin_fullpath); in automount_fullpath()
162 spin_unlock(&tcon->tc_lock); in automount_fullpath()
[all …]
A Dmisc.c167 if (tcon == NULL) { in tconInfoFree()
171 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, trace); in tconInfoFree()
172 free_cached_dirs(tcon->cfids); in tconInfoFree()
174 kfree(tcon->nativeFileSystem); in tconInfoFree()
176 kfree(tcon->origin_fullpath); in tconInfoFree()
177 kfree(tcon); in tconInfoFree()
443 struct cifs_tcon *tcon; in is_valid_oplock_break() local
515 if (tcon->tid != buf->Tid) in is_valid_oplock_break()
572 tcon ? tcon->tree_name : "new server"); in cifs_autodisable_serverino()
1175 spin_lock(&tcon->tc_lock); in cifs_get_dfs_tcon_super()
[all …]
A Dcifsglob.h410 struct cifs_tcon *tcon,
607 struct cifs_tcon *tcon,
615 struct cifs_tcon *tcon,
1441 struct cifs_tcon *tcon; member
1518 struct cifs_tcon *tcon; member
1671 spin_lock(&tcon->stat_lock); in cifs_stats_bytes_read()
1672 tcon->bytes_read += bytes; in cifs_stats_bytes_read()
1820 struct cifs_tcon *tcon; member
2193 if (!tcon || !tcon->ses || !tcon->ses->server) in is_tcon_dfs()
2195 return is_smb1_server(tcon->ses->server) ? tcon->Flags & SMB_SHARE_IS_IN_DFS : in is_tcon_dfs()
[all …]
A Dreparse.c18 struct dentry *dentry, struct cifs_tcon *tcon,
28 struct dentry *dentry, struct cifs_tcon *tcon,
38 struct dentry *dentry, struct cifs_tcon *tcon, in create_reparse_symlink() argument
232 tcon, full_path, directory, in create_native_symlink()
255 struct cifs_tcon *tcon; in detect_directory_symlink_target() local
325 tcon = tlink_tcon(tlink); in detect_directory_symlink_target()
338 tcon->ses->server->ops->close(xid, tcon, &fid); in detect_directory_symlink_target()
357 tcon->ses->server->ops->close(xid, tcon, &fid); in detect_directory_symlink_target()
405 tcon, full_path, false, &iov, NULL); in create_native_socket()
499 tcon, full_path, false, &iov, NULL); in mknod_nfs()
[all …]
/fs/smb/server/mgmt/
A Dtree_connect.c108 if (!atomic_dec_return(&tcon->refcount) && in ksmbd_tree_connect_put()
109 waitqueue_active(&tcon->refcount_q)) in ksmbd_tree_connect_put()
110 wake_up(&tcon->refcount_q); in ksmbd_tree_connect_put()
136 struct ksmbd_tree_connect *tcon; in ksmbd_tree_conn_lookup() local
139 tcon = xa_load(&sess->tree_conns, id); in ksmbd_tree_conn_lookup()
140 if (tcon) { in ksmbd_tree_conn_lookup()
141 if (tcon->t_state != TREE_CONNECTED) in ksmbd_tree_conn_lookup()
142 tcon = NULL; in ksmbd_tree_conn_lookup()
143 else if (!atomic_inc_not_zero(&tcon->refcount)) in ksmbd_tree_conn_lookup()
144 tcon = NULL; in ksmbd_tree_conn_lookup()
[all …]

Completed in 129 milliseconds

123