Lines Matching refs:tcon

50 			struct cifs_tcon *tcon, int add_treename)  in cifs_build_path_to_root()  argument
63 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
72 memcpy(full_path, tcon->treeName, dfsplen); in cifs_build_path_to_root()
84 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry() local
85 bool prefix = tcon->Flags & SMB_SHARE_IS_IN_DFS; in build_path_from_dentry()
101 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry_optional_prefix() local
106 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry_optional_prefix()
183 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry_optional_prefix()
201 check_name(struct dentry *direntry, struct cifs_tcon *tcon) in check_name() argument
206 if (unlikely(tcon->fsAttrInfo.MaxPathNameComponentLength && in check_name()
208 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength))) in check_name()
234 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_do_create() local
239 struct TCP_Server_Info *server = tcon->ses->server; in cifs_do_create()
243 if (tcon->ses->server->oplocks) in cifs_do_create()
252 if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open && in cifs_do_create()
254 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_do_create()
265 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_do_create()
279 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_do_create()
298 tcon->broken_posix_open = true; in cifs_do_create()
357 if (!tcon->unix_ext && (mode & S_IWUGO) == 0) in cifs_do_create()
363 oparms.tcon = tcon; in cifs_do_create()
382 if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) { in cifs_do_create()
401 CIFSSMBUnixSetFileInfo(xid, tcon, &args, fid->netfid, in cifs_do_create()
415 if (tcon->unix_ext) in cifs_do_create()
459 server->ops->close(xid, tcon, fid); in cifs_do_create()
472 struct cifs_tcon *tcon; in cifs_atomic_open() local
518 tcon = tlink_tcon(tlink); in cifs_atomic_open()
520 rc = check_name(direntry, tcon); in cifs_atomic_open()
524 server = tcon->ses->server; in cifs_atomic_open()
545 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
561 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
588 struct cifs_tcon *tcon; in cifs_create() local
601 tcon = tlink_tcon(tlink); in cifs_create()
602 server = tcon->ses->server; in cifs_create()
610 server->ops->close(xid, tcon, &fid); in cifs_create()
625 struct cifs_tcon *tcon; in cifs_mknod() local
636 tcon = tlink_tcon(tlink); in cifs_mknod()
646 rc = tcon->ses->server->ops->make_node(xid, inode, direntry, tcon, in cifs_mknod()