Lines Matching refs:tcon
50 struct cifs_tcon *tcon) in cifs_build_path_to_root() argument
62 if (tcon->Flags & SMB_SHARE_IS_IN_DFS) in cifs_build_path_to_root()
63 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
72 strncpy(full_path, tcon->treeName, dfsplen); in cifs_build_path_to_root()
90 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry() local
94 if (tcon->Flags & SMB_SHARE_IS_IN_DFS) in build_path_from_dentry()
95 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry()
157 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry()
202 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_do_create() local
207 struct TCP_Server_Info *server = tcon->ses->server; in cifs_do_create()
211 if (tcon->ses->server->oplocks) in cifs_do_create()
220 if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open && in cifs_do_create()
222 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_do_create()
240 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_do_create()
259 tcon->broken_posix_open = true; in cifs_do_create()
318 if (!tcon->unix_ext && (mode & S_IWUGO) == 0) in cifs_do_create()
324 oparms.tcon = tcon; in cifs_do_create()
343 if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) { in cifs_do_create()
362 CIFSSMBUnixSetFileInfo(xid, tcon, &args, fid->netfid, in cifs_do_create()
376 if (tcon->unix_ext) in cifs_do_create()
403 server->ops->close(xid, tcon, fid); in cifs_do_create()
423 struct cifs_tcon *tcon; in cifs_atomic_open() local
473 tcon = tlink_tcon(tlink); in cifs_atomic_open()
474 server = tcon->ses->server; in cifs_atomic_open()
495 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
511 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
538 struct cifs_tcon *tcon; in cifs_create() local
551 tcon = tlink_tcon(tlink); in cifs_create()
552 server = tcon->ses->server; in cifs_create()
560 server->ops->close(xid, tcon, &fid); in cifs_create()
576 struct cifs_tcon *tcon; in cifs_mknod() local
596 tcon = tlink_tcon(tlink); in cifs_mknod()
606 if (tcon->unix_ext) { in cifs_mknod()
621 rc = CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args, in cifs_mknod()
652 oparms.tcon = tcon; in cifs_mknod()
661 if (tcon->ses->server->oplocks) in cifs_mknod()
665 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in cifs_mknod()
676 io_parms.tcon = tcon; in cifs_mknod()
685 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_mknod()
691 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_mknod()
694 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_mknod()