Lines Matching full:tcon
191 struct cifs_tcon *tcon; in cifs_read_super() local
196 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_read_super()
201 if (tcon->snapshot_time) in cifs_read_super()
204 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
216 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && in cifs_read_super()
217 ((tcon->ses->capabilities & in cifs_read_super()
218 tcon->ses->server->vals->cap_nt_find) == 0) && in cifs_read_super()
219 !tcon->unix_ext) { 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()
312 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_statfs() local
313 struct TCP_Server_Info *server = tcon->ses->server; in cifs_statfs()
328 if (le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength) > 0) in cifs_statfs()
330 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength); in cifs_statfs()
334 buf->f_fsid.val[0] = tcon->vol_serial_number; in cifs_statfs()
336 buf->f_fsid.val[1] = (int)le64_to_cpu(tcon->vol_create_time); in cifs_statfs()
342 rc = server->ops->queryfs(xid, tcon, full_path, cifs_sb, buf); in cifs_statfs()
353 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_fallocate() local
354 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fallocate()
357 return server->ops->fallocate(file, tcon, mode, off, len); in cifs_fallocate()
582 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_show_options() local
584 srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr; in cifs_show_options()
586 seq_show_option(s, "vers", tcon->ses->server->vals->version_string); in cifs_show_options()
587 cifs_show_security(s, tcon->ses); in cifs_show_options()
591 if (tcon->no_lease) in cifs_show_options()
595 else if (tcon->ses->user_name) in cifs_show_options()
596 seq_show_option(s, "username", tcon->ses->user_name); in cifs_show_options()
598 if (tcon->ses->domainName && tcon->ses->domainName[0] != 0) in cifs_show_options()
599 seq_show_option(s, "domain", tcon->ses->domainName); in cifs_show_options()
631 cifs_show_address(s, tcon->ses->server); in cifs_show_options()
633 if (!tcon->unix_ext) in cifs_show_options()
639 if (tcon->ses->unicode == 0) in cifs_show_options()
641 else if (tcon->ses->unicode == 1) in cifs_show_options()
643 if (tcon->seal) in cifs_show_options()
645 else if (tcon->ses->server->ignore_signature) in cifs_show_options()
647 if (tcon->nocase) in cifs_show_options()
649 if (tcon->nodelete) in cifs_show_options()
653 if (tcon->local_lease) in cifs_show_options()
655 if (tcon->retry) in cifs_show_options()
659 if (tcon->use_persistent) in cifs_show_options()
661 else if (tcon->use_resilient) in cifs_show_options()
663 if (tcon->posix_extensions) in cifs_show_options()
665 else if (tcon->unix_ext) in cifs_show_options()
733 if (tcon->ses->server->min_offload) in cifs_show_options()
734 seq_printf(s, ",esize=%u", tcon->ses->server->min_offload); in cifs_show_options()
735 if (tcon->ses->server->retrans) in cifs_show_options()
736 seq_printf(s, ",retrans=%u", tcon->ses->server->retrans); in cifs_show_options()
738 tcon->ses->server->echo_interval / HZ); in cifs_show_options()
741 if (tcon->ses->server->max_credits != SMB2_MAX_CREDITS_AVAILABLE) in cifs_show_options()
742 seq_printf(s, ",max_credits=%u", tcon->ses->server->max_credits); in cifs_show_options()
743 if (tcon->ses->server->tcp_nodelay) in cifs_show_options()
745 if (tcon->ses->server->noautotune) in cifs_show_options()
747 if (tcon->ses->server->noblocksnd) in cifs_show_options()
749 if (tcon->ses->server->nosharesock) in cifs_show_options()
752 if (tcon->snapshot_time) in cifs_show_options()
753 seq_printf(s, ",snapshot=%llu", tcon->snapshot_time); in cifs_show_options()
754 if (tcon->handle_timeout) in cifs_show_options()
755 seq_printf(s, ",handletimeout=%u", tcon->handle_timeout); in cifs_show_options()
756 if (tcon->max_cached_dirs != MAX_CACHED_FIDS) in cifs_show_options()
757 seq_printf(s, ",max_cached_dirs=%u", tcon->max_cached_dirs); in cifs_show_options()
772 if (tcon->ses->chan_max > 1) in cifs_show_options()
774 tcon->ses->chan_max); in cifs_show_options()
776 if (tcon->use_witness) in cifs_show_options()
785 struct cifs_tcon *tcon; in cifs_umount_begin() local
790 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_umount_begin()
793 spin_lock(&tcon->tc_lock); in cifs_umount_begin()
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()
800 spin_unlock(&tcon->tc_lock); in cifs_umount_begin()
805 * can not set tcon->status to TID_EXITING yet since we don't know if umount -f will in cifs_umount_begin()
808 spin_unlock(&tcon->tc_lock); in cifs_umount_begin()
811 cifs_close_all_deferred_files(tcon); in cifs_umount_begin()
812 /* cancel_brl_requests(tcon); */ /* BB mark all brl mids as exiting */ in cifs_umount_begin()
813 /* cancel_notify_requests(tcon); */ in cifs_umount_begin()
814 if (tcon->ses && tcon->ses->server) { in cifs_umount_begin()
816 wake_up_all(&tcon->ses->server->request_q); in cifs_umount_begin()
817 wake_up_all(&tcon->ses->server->response_q); in cifs_umount_begin()
820 wake_up_all(&tcon->ses->server->response_q); in cifs_umount_begin()
830 struct cifs_tcon *tcon; in cifs_freeze() local
835 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_freeze()
837 cifs_close_all_deferred_files(tcon); in cifs_freeze()
1044 struct cifs_tcon *tcon; in cifs_llseek() local
1078 tcon = tlink_tcon(cfile->tlink); in cifs_llseek()
1079 if (tcon->ses->server->ops->llseek) in cifs_llseek()
1080 return tcon->ses->server->ops->llseek(file, tcon, in cifs_llseek()