Lines Matching refs:tcon
123 struct cifs_tcon *tcon; in cifs_posix_open() local
137 tcon = tlink_tcon(tlink); in cifs_posix_open()
141 rc = CIFSPOSIXCreate(xid, tcon, posix_flags, mode, pnetfid, presp_data, in cifs_posix_open()
176 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, in cifs_nt_open() argument
184 struct TCP_Server_Info *server = tcon->ses->server; in cifs_nt_open()
227 oparms.tcon = tcon; in cifs_nt_open()
241 if (tcon->unix_ext) in cifs_nt_open()
279 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_new_fileinfo() local
280 struct TCP_Server_Info *server = tcon->ses->server; in cifs_new_fileinfo()
328 list_add(&cfile->tlist, &tcon->openFileList); in cifs_new_fileinfo()
360 struct cifs_tcon *tcon = tlink_tcon(cifs_file->tlink); in cifsFileInfo_put() local
361 struct TCP_Server_Info *server = tcon->ses->server; in cifsFileInfo_put()
402 if (!tcon->need_reconnect && !cifs_file->invalidHandle) { in cifsFileInfo_put()
403 struct TCP_Server_Info *server = tcon->ses->server; in cifsFileInfo_put()
408 server->ops->close(xid, tcon, &cifs_file->fid); in cifsFileInfo_put()
445 struct cifs_tcon *tcon; in cifs_open() local
461 tcon = tlink_tcon(tlink); in cifs_open()
462 server = tcon->ses->server; in cifs_open()
486 if (!tcon->broken_posix_open && tcon->unix_ext && in cifs_open()
487 cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP & in cifs_open()
488 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_open()
497 if (tcon->ses->serverNOS) in cifs_open()
499 tcon->ses->serverName, in cifs_open()
500 tcon->ses->serverNOS); in cifs_open()
501 tcon->broken_posix_open = true; in cifs_open()
520 rc = cifs_nt_open(full_path, inode, cifs_sb, tcon, in cifs_open()
531 server->ops->close(xid, tcon, &fid); in cifs_open()
539 if ((oplock & CIFS_CREATE_ACTION) && !posix_open_ok && tcon->unix_ext) { in cifs_open()
553 CIFSSMBUnixSetFileInfo(xid, tcon, &args, fid.netfid, in cifs_open()
575 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_relock_file() local
585 if (cap_unix(tcon->ses) && in cifs_relock_file()
586 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) && in cifs_relock_file()
590 rc = tcon->ses->server->ops->push_mand_locks(cfile); in cifs_relock_file()
603 struct cifs_tcon *tcon; in cifs_reopen_file() local
624 tcon = tlink_tcon(cfile->tlink); in cifs_reopen_file()
625 server = tcon->ses->server; in cifs_reopen_file()
644 if (tcon->ses->server->oplocks) in cifs_reopen_file()
649 if (tcon->unix_ext && cap_unix(tcon->ses) && in cifs_reopen_file()
651 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_reopen_file()
681 oparms.tcon = tcon; in cifs_reopen_file()
721 if (tcon->unix_ext) in cifs_reopen_file()
761 struct cifs_tcon *tcon; in cifs_closedir() local
771 tcon = tlink_tcon(cfile->tlink); in cifs_closedir()
772 server = tcon->ses->server; in cifs_closedir()
780 rc = server->ops->close_dir(xid, tcon, &cfile->fid); in cifs_closedir()
1050 struct cifs_tcon *tcon; in cifs_push_mandatory_locks() local
1058 tcon = tlink_tcon(cfile->tlink); in cifs_push_mandatory_locks()
1064 max_buf = tcon->ses->server->maxBuf; in cifs_push_mandatory_locks()
1090 stored_rc = cifs_lockv(xid, tcon, in cifs_push_mandatory_locks()
1103 stored_rc = cifs_lockv(xid, tcon, cfile->fid.netfid, in cifs_push_mandatory_locks()
1128 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_push_posix_locks() local
1192 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
1217 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_push_locks() local
1227 if (cap_unix(tcon->ses) && in cifs_push_locks()
1228 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) && in cifs_push_locks()
1232 rc = tcon->ses->server->ops->push_mand_locks(cfile); in cifs_push_locks()
1293 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_getlk() local
1294 struct TCP_Server_Info *server = tcon->ses->server; in cifs_getlk()
1308 rc = CIFSSMBPosixLock(xid, tcon, netfid, current->tgid, in cifs_getlk()
1383 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_unlock_range() local
1395 max_buf = tcon->ses->server->maxBuf; in cifs_unlock_range()
1440 stored_rc = cifs_lockv(xid, tcon, in cifs_unlock_range()
1464 stored_rc = cifs_lockv(xid, tcon, cfile->fid.netfid, in cifs_unlock_range()
1488 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_setlk() local
1489 struct TCP_Server_Info *server = tcon->ses->server; in cifs_setlk()
1507 rc = CIFSSMBPosixLock(xid, tcon, cfile->fid.netfid, in cifs_setlk()
1567 struct cifs_tcon *tcon; in cifs_lock() local
1581 tcon = tlink_tcon(cfile->tlink); in cifs_lock()
1584 tcon->ses->server); in cifs_lock()
1590 if (cap_unix(tcon->ses) && in cifs_lock()
1591 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) && in cifs_lock()
1641 struct cifs_tcon *tcon; in cifs_write() local
1653 tcon = tlink_tcon(open_file->tlink); in cifs_write()
1654 server = tcon->ses->server; in cifs_write()
1684 io_parms.tcon = tcon; in cifs_write()
1705 cifs_stats_bytes_written(tcon, total_written); in cifs_write()
2261 struct cifs_tcon *tcon; in cifs_strict_fsync() local
2285 tcon = tlink_tcon(smbfile->tlink); in cifs_strict_fsync()
2287 server = tcon->ses->server; in cifs_strict_fsync()
2289 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_strict_fsync()
2303 struct cifs_tcon *tcon; in cifs_fsync() local
2319 tcon = tlink_tcon(smbfile->tlink); in cifs_fsync()
2321 server = tcon->ses->server; in cifs_fsync()
2323 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_fsync()
2567 struct cifs_tcon *tcon; in cifs_user_writev() local
2587 tcon = tlink_tcon(open_file->tlink); in cifs_user_writev()
2589 if (!tcon->ses->server->ops->async_writev) in cifs_user_writev()
2656 cifs_stats_bytes_written(tcon, total_written); in cifs_user_writev()
2707 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_strict_writev() local
2715 if (cap_unix(tcon->ses) && in cifs_strict_writev()
2716 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) in cifs_strict_writev()
2979 struct cifs_tcon *tcon; in cifs_user_readv() local
2991 tcon = tlink_tcon(open_file->tlink); in cifs_user_readv()
2993 if (!tcon->ses->server->ops->async_readv) in cifs_user_readv()
3062 cifs_stats_bytes_read(tcon, total_read); in cifs_user_readv()
3083 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_strict_readv() local
3097 if (cap_unix(tcon->ses) && in cifs_strict_readv()
3098 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) && in cifs_strict_readv()
3108 tcon->ses->server->vals->shared_lock_type, in cifs_strict_readv()
3124 struct cifs_tcon *tcon; in cifs_read() local
3145 tcon = tlink_tcon(open_file->tlink); in cifs_read()
3146 server = tcon->ses->server; in cifs_read()
3171 if ((tcon->ses) && !(tcon->ses->capabilities & in cifs_read()
3172 tcon->ses->server->vals->cap_large_files)) { in cifs_read()
3182 io_parms.tcon = tcon; in cifs_read()
3198 cifs_stats_bytes_read(tcon, total_read); in cifs_read()
3798 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_oplock_break() local
3799 struct TCP_Server_Info *server = tcon->ses->server; in cifs_oplock_break()
3840 rc = tcon->ses->server->ops->oplock_response(tcon, &cfile->fid, in cifs_oplock_break()