Lines Matching defs:tcon
193 struct cifs_tcon *tcon;
198 tcon = cifs_sb_master_tcon(cifs_sb);
203 if (tcon->snapshot_time)
206 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files)
218 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) &&
219 ((tcon->ses->capabilities &
220 tcon->ses->server->vals->cap_nt_find) == 0) &&
221 !tcon->unix_ext) {
249 tcon->ses->server->ops->negotiate_rsize(tcon, cifs_sb->ctx);
264 if (tcon->nocase)
314 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
315 struct TCP_Server_Info *server = tcon->ses->server;
321 if (le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength) > 0)
323 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength);
327 buf->f_fsid.val[0] = tcon->vol_serial_number;
329 buf->f_fsid.val[1] = (int)le64_to_cpu(tcon->vol_create_time);
335 rc = server->ops->queryfs(xid, tcon, cifs_sb, buf);
344 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
345 struct TCP_Server_Info *server = tcon->ses->server;
348 return server->ops->fallocate(file, tcon, mode, off, len);
543 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
545 srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr;
547 seq_show_option(s, "vers", tcon->ses->server->vals->version_string);
548 cifs_show_security(s, tcon->ses);
551 if (tcon->no_lease)
555 else if (tcon->ses->user_name)
556 seq_show_option(s, "username", tcon->ses->user_name);
558 if (tcon->ses->domainName && tcon->ses->domainName[0] != 0)
559 seq_show_option(s, "domain", tcon->ses->domainName);
591 cifs_show_address(s, tcon->ses->server);
593 if (!tcon->unix_ext)
599 if (tcon->seal)
601 else if (tcon->ses->server->ignore_signature)
603 if (tcon->nocase)
605 if (tcon->nodelete)
609 if (tcon->local_lease)
611 if (tcon->retry)
615 if (tcon->use_persistent)
617 else if (tcon->use_resilient)
619 if (tcon->posix_extensions)
621 else if (tcon->unix_ext)
681 if (tcon->ses->server->min_offload)
682 seq_printf(s, ",esize=%u", tcon->ses->server->min_offload);
684 tcon->ses->server->echo_interval / HZ);
687 if (tcon->ses->server->max_credits != SMB2_MAX_CREDITS_AVAILABLE)
688 seq_printf(s, ",max_credits=%u", tcon->ses->server->max_credits);
689 if (tcon->ses->server->tcp_nodelay)
691 if (tcon->ses->server->noautotune)
693 if (tcon->ses->server->noblocksnd)
695 if (tcon->ses->server->nosharesock)
698 if (tcon->snapshot_time)
699 seq_printf(s, ",snapshot=%llu", tcon->snapshot_time);
700 if (tcon->handle_timeout)
701 seq_printf(s, ",handletimeout=%u", tcon->handle_timeout);
702 if (tcon->max_cached_dirs != MAX_CACHED_FIDS)
703 seq_printf(s, ",max_cached_dirs=%u", tcon->max_cached_dirs);
718 if (tcon->ses->chan_max > 1)
720 tcon->ses->chan_max);
722 if (tcon->use_witness)
731 struct cifs_tcon *tcon;
736 tcon = cifs_sb_master_tcon(cifs_sb);
739 spin_lock(&tcon->tc_lock);
740 if ((tcon->tc_count > 1) || (tcon->status == TID_EXITING)) {
744 spin_unlock(&tcon->tc_lock);
749 * can not set tcon->status to TID_EXITING yet since we don't know if umount -f will
752 spin_unlock(&tcon->tc_lock);
755 cifs_close_all_deferred_files(tcon);
756 /* cancel_brl_requests(tcon); */ /* BB mark all brl mids as exiting */
757 /* cancel_notify_requests(tcon); */
758 if (tcon->ses && tcon->ses->server) {
760 wake_up_all(&tcon->ses->server->request_q);
761 wake_up_all(&tcon->ses->server->response_q);
764 wake_up_all(&tcon->ses->server->response_q);
774 struct cifs_tcon *tcon;
779 tcon = cifs_sb_master_tcon(cifs_sb);
781 cifs_close_all_deferred_files(tcon);
1043 struct cifs_tcon *tcon;
1077 tcon = tlink_tcon(cfile->tlink);
1078 if (tcon->ses->server->ops->llseek)
1079 return tcon->ses->server->ops->llseek(file, tcon,