Lines Matching full:tcon

188 	struct cifs_tcon *tcon;  in cifs_read_super()  local
193 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_read_super()
198 if (tcon->snapshot_time) in cifs_read_super()
201 if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) in cifs_read_super()
213 if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && in cifs_read_super()
214 ((tcon->ses->capabilities & in cifs_read_super()
215 tcon->ses->server->vals->cap_nt_find) == 0) && in cifs_read_super()
216 !tcon->unix_ext) { in cifs_read_super()
244 tcon->ses->server->ops->negotiate_rsize(tcon, cifs_sb->ctx); in cifs_read_super()
259 if (tcon->nocase) in cifs_read_super()
309 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_statfs() local
310 struct TCP_Server_Info *server = tcon->ses->server; in cifs_statfs()
316 if (le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength) > 0) in cifs_statfs()
318 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength); in cifs_statfs()
322 buf->f_fsid.val[0] = tcon->vol_serial_number; in cifs_statfs()
324 buf->f_fsid.val[1] = (int)le64_to_cpu(tcon->vol_create_time); in cifs_statfs()
330 rc = server->ops->queryfs(xid, tcon, cifs_sb, buf); in cifs_statfs()
339 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_fallocate() local
340 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fallocate()
343 return server->ops->fallocate(file, tcon, mode, off, len); in cifs_fallocate()
538 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_show_options() local
540 srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr; in cifs_show_options()
542 seq_show_option(s, "vers", tcon->ses->server->vals->version_string); in cifs_show_options()
543 cifs_show_security(s, tcon->ses); in cifs_show_options()
546 if (tcon->no_lease) in cifs_show_options()
550 else if (tcon->ses->user_name) in cifs_show_options()
551 seq_show_option(s, "username", tcon->ses->user_name); in cifs_show_options()
553 if (tcon->ses->domainName && tcon->ses->domainName[0] != 0) in cifs_show_options()
554 seq_show_option(s, "domain", tcon->ses->domainName); in cifs_show_options()
586 cifs_show_address(s, tcon->ses->server); in cifs_show_options()
588 if (!tcon->unix_ext) in cifs_show_options()
594 if (tcon->seal) in cifs_show_options()
596 else if (tcon->ses->server->ignore_signature) in cifs_show_options()
598 if (tcon->nocase) in cifs_show_options()
600 if (tcon->nodelete) in cifs_show_options()
604 if (tcon->local_lease) in cifs_show_options()
606 if (tcon->retry) in cifs_show_options()
610 if (tcon->use_persistent) in cifs_show_options()
612 else if (tcon->use_resilient) in cifs_show_options()
614 if (tcon->posix_extensions) in cifs_show_options()
616 else if (tcon->unix_ext) in cifs_show_options()
676 if (tcon->ses->server->min_offload) in cifs_show_options()
677 seq_printf(s, ",esize=%u", tcon->ses->server->min_offload); in cifs_show_options()
679 tcon->ses->server->echo_interval / HZ); in cifs_show_options()
682 if (tcon->ses->server->max_credits != SMB2_MAX_CREDITS_AVAILABLE) in cifs_show_options()
683 seq_printf(s, ",max_credits=%u", tcon->ses->server->max_credits); in cifs_show_options()
685 if (tcon->snapshot_time) in cifs_show_options()
686 seq_printf(s, ",snapshot=%llu", tcon->snapshot_time); in cifs_show_options()
687 if (tcon->handle_timeout) in cifs_show_options()
688 seq_printf(s, ",handletimeout=%u", tcon->handle_timeout); in cifs_show_options()
703 if (tcon->ses->chan_max > 1) in cifs_show_options()
705 tcon->ses->chan_max); in cifs_show_options()
707 if (tcon->use_witness) in cifs_show_options()
716 struct cifs_tcon *tcon; in cifs_umount_begin() local
721 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_umount_begin()
724 spin_lock(&tcon->tc_lock); in cifs_umount_begin()
725 if ((tcon->tc_count > 1) || (tcon->status == TID_EXITING)) { in cifs_umount_begin()
729 spin_unlock(&tcon->tc_lock); in cifs_umount_begin()
732 } else if (tcon->tc_count == 1) in cifs_umount_begin()
733 tcon->status = TID_EXITING; in cifs_umount_begin()
734 spin_unlock(&tcon->tc_lock); in cifs_umount_begin()
737 /* cancel_brl_requests(tcon); */ /* BB mark all brl mids as exiting */ in cifs_umount_begin()
738 /* cancel_notify_requests(tcon); */ in cifs_umount_begin()
739 if (tcon->ses && tcon->ses->server) { in cifs_umount_begin()
741 wake_up_all(&tcon->ses->server->request_q); in cifs_umount_begin()
742 wake_up_all(&tcon->ses->server->response_q); in cifs_umount_begin()
745 wake_up_all(&tcon->ses->server->response_q); in cifs_umount_begin()
1025 struct cifs_tcon *tcon; in cifs_llseek() local
1059 tcon = tlink_tcon(cfile->tlink); in cifs_llseek()
1060 if (tcon->ses->server->ops->llseek) in cifs_llseek()
1061 return tcon->ses->server->ops->llseek(file, tcon, in cifs_llseek()