Lines Matching refs:tcon

39 			struct cifs_tcon *tcon, int add_treename)  in cifs_build_path_to_root()  argument
52 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
61 memcpy(full_path, tcon->treeName, dfsplen); in cifs_build_path_to_root()
73 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry() local
74 bool prefix = tcon->Flags & SMB_SHARE_IS_IN_DFS; in build_path_from_dentry()
87 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry_optional_prefix() local
95 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry_optional_prefix()
125 memcpy(s, tcon->treeName, dfsplen); in build_path_from_dentry_optional_prefix()
143 check_name(struct dentry *direntry, struct cifs_tcon *tcon) in check_name() argument
148 if (unlikely(tcon->fsAttrInfo.MaxPathNameComponentLength && in check_name()
150 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength))) in check_name()
176 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_do_create() local
182 struct TCP_Server_Info *server = tcon->ses->server; in cifs_do_create()
186 if (tcon->ses->server->oplocks) in cifs_do_create()
195 if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open && in cifs_do_create()
197 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_do_create()
208 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_do_create()
222 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_do_create()
241 tcon->broken_posix_open = true; in cifs_do_create()
300 if (!tcon->unix_ext && (mode & S_IWUGO) == 0) in cifs_do_create()
303 oparms.tcon = tcon; in cifs_do_create()
322 if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) { in cifs_do_create()
341 CIFSSMBUnixSetFileInfo(xid, tcon, &args, fid->netfid, in cifs_do_create()
355 if (tcon->unix_ext) in cifs_do_create()
402 server->ops->close(xid, tcon, fid); in cifs_do_create()
415 struct cifs_tcon *tcon; in cifs_atomic_open() local
464 tcon = tlink_tcon(tlink); in cifs_atomic_open()
466 rc = check_name(direntry, tcon); in cifs_atomic_open()
470 server = tcon->ses->server; in cifs_atomic_open()
491 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
507 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
533 struct cifs_tcon *tcon; in cifs_create() local
549 tcon = tlink_tcon(tlink); in cifs_create()
550 server = tcon->ses->server; in cifs_create()
558 server->ops->close(xid, tcon, &fid); in cifs_create()
573 struct cifs_tcon *tcon; in cifs_mknod() local
589 tcon = tlink_tcon(tlink); in cifs_mknod()
598 rc = tcon->ses->server->ops->make_node(xid, inode, direntry, tcon, in cifs_mknod()