• Home
  • Raw
  • Download

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()
234 oparms.tcon = tcon; in cifs_nt_open()
248 if (tcon->unix_ext) in cifs_nt_open()
256 server->ops->close(xid, tcon, fid); in cifs_nt_open()
299 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_new_fileinfo() local
300 struct TCP_Server_Info *server = tcon->ses->server; in cifs_new_fileinfo()
342 spin_lock(&tcon->open_file_lock); in cifs_new_fileinfo()
350 list_add(&cfile->tlist, &tcon->openFileList); in cifs_new_fileinfo()
357 spin_unlock(&tcon->open_file_lock); in cifs_new_fileinfo()
401 struct cifs_tcon *tcon = tlink_tcon(cifs_file->tlink); in _cifsFileInfo_put() local
402 struct TCP_Server_Info *server = tcon->ses->server; in _cifsFileInfo_put()
411 spin_lock(&tcon->open_file_lock); in _cifsFileInfo_put()
416 spin_unlock(&tcon->open_file_lock); in _cifsFileInfo_put()
444 spin_unlock(&tcon->open_file_lock); in _cifsFileInfo_put()
449 if (!tcon->need_reconnect && !cifs_file->invalidHandle) { in _cifsFileInfo_put()
450 struct TCP_Server_Info *server = tcon->ses->server; in _cifsFileInfo_put()
455 server->ops->close(xid, tcon, &cifs_file->fid); in _cifsFileInfo_put()
492 struct cifs_tcon *tcon; in cifs_open() local
508 tcon = tlink_tcon(tlink); in cifs_open()
509 server = tcon->ses->server; in cifs_open()
533 if (!tcon->broken_posix_open && tcon->unix_ext && in cifs_open()
534 cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP & in cifs_open()
535 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_open()
544 if (tcon->ses->serverNOS) in cifs_open()
546 tcon->ses->serverName, in cifs_open()
547 tcon->ses->serverNOS); in cifs_open()
548 tcon->broken_posix_open = true; in cifs_open()
567 rc = cifs_nt_open(full_path, inode, cifs_sb, tcon, in cifs_open()
578 server->ops->close(xid, tcon, &fid); in cifs_open()
586 if ((oplock & CIFS_CREATE_ACTION) && !posix_open_ok && tcon->unix_ext) { in cifs_open()
600 CIFSSMBUnixSetFileInfo(xid, tcon, &args, fid.netfid, in cifs_open()
622 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_relock_file() local
632 if (cap_unix(tcon->ses) && in cifs_relock_file()
633 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) && in cifs_relock_file()
637 rc = tcon->ses->server->ops->push_mand_locks(cfile); in cifs_relock_file()
650 struct cifs_tcon *tcon; in cifs_reopen_file() local
671 tcon = tlink_tcon(cfile->tlink); in cifs_reopen_file()
672 server = tcon->ses->server; in cifs_reopen_file()
691 if (tcon->ses->server->oplocks) in cifs_reopen_file()
696 if (tcon->unix_ext && cap_unix(tcon->ses) && in cifs_reopen_file()
698 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_reopen_file()
735 oparms.tcon = tcon; in cifs_reopen_file()
775 if (tcon->unix_ext) in cifs_reopen_file()
820 cifs_reopen_persistent_handles(struct cifs_tcon *tcon) in cifs_reopen_persistent_handles() argument
827 if (!tcon->use_persistent || !tcon->need_reopen_files) in cifs_reopen_persistent_handles()
830 tcon->need_reopen_files = false; in cifs_reopen_persistent_handles()
836 spin_lock(&tcon->open_file_lock); in cifs_reopen_persistent_handles()
837 list_for_each(tmp, &tcon->openFileList) { in cifs_reopen_persistent_handles()
844 spin_unlock(&tcon->open_file_lock); in cifs_reopen_persistent_handles()
849 tcon->need_reopen_files = true; in cifs_reopen_persistent_handles()
860 struct cifs_tcon *tcon; in cifs_closedir() local
870 tcon = tlink_tcon(cfile->tlink); in cifs_closedir()
871 server = tcon->ses->server; in cifs_closedir()
879 rc = server->ops->close_dir(xid, tcon, &cfile->fid); in cifs_closedir()
1149 struct cifs_tcon *tcon; in cifs_push_mandatory_locks() local
1159 tcon = tlink_tcon(cfile->tlink); in cifs_push_mandatory_locks()
1165 max_buf = tcon->ses->server->maxBuf; in cifs_push_mandatory_locks()
1195 stored_rc = cifs_lockv(xid, tcon, in cifs_push_mandatory_locks()
1208 stored_rc = cifs_lockv(xid, tcon, cfile->fid.netfid, in cifs_push_mandatory_locks()
1239 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_push_posix_locks() local
1303 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
1328 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_push_locks() local
1338 if (cap_unix(tcon->ses) && in cifs_push_locks()
1339 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) && in cifs_push_locks()
1343 rc = tcon->ses->server->ops->push_mand_locks(cfile); in cifs_push_locks()
1404 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_getlk() local
1405 struct TCP_Server_Info *server = tcon->ses->server; in cifs_getlk()
1419 rc = CIFSSMBPosixLock(xid, tcon, netfid, in cifs_getlk()
1497 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_unlock_range() local
1509 max_buf = tcon->ses->server->maxBuf; in cifs_unlock_range()
1558 stored_rc = cifs_lockv(xid, tcon, in cifs_unlock_range()
1582 stored_rc = cifs_lockv(xid, tcon, cfile->fid.netfid, in cifs_unlock_range()
1606 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_setlk() local
1607 struct TCP_Server_Info *server = tcon->ses->server; in cifs_setlk()
1625 rc = CIFSSMBPosixLock(xid, tcon, cfile->fid.netfid, in cifs_setlk()
1698 struct cifs_tcon *tcon; in cifs_lock() local
1712 tcon = tlink_tcon(cfile->tlink); in cifs_lock()
1715 tcon->ses->server); in cifs_lock()
1721 if (cap_unix(tcon->ses) && in cifs_lock()
1722 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) && in cifs_lock()
1772 struct cifs_tcon *tcon; in cifs_write() local
1784 tcon = tlink_tcon(open_file->tlink); in cifs_write()
1785 server = tcon->ses->server; in cifs_write()
1815 io_parms.tcon = tcon; in cifs_write()
1836 cifs_stats_bytes_written(tcon, total_written); in cifs_write()
1854 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in find_readable_file() local
1860 spin_lock(&tcon->open_file_lock); in find_readable_file()
1872 spin_unlock(&tcon->open_file_lock); in find_readable_file()
1880 spin_unlock(&tcon->open_file_lock); in find_readable_file()
1889 struct cifs_tcon *tcon; in find_writable_file() local
1905 tcon = cifs_sb_master_tcon(cifs_sb); in find_writable_file()
1911 spin_lock(&tcon->open_file_lock); in find_writable_file()
1914 spin_unlock(&tcon->open_file_lock); in find_writable_file()
1926 spin_unlock(&tcon->open_file_lock); in find_writable_file()
1945 spin_unlock(&tcon->open_file_lock); in find_writable_file()
1952 spin_lock(&tcon->open_file_lock); in find_writable_file()
1955 spin_unlock(&tcon->open_file_lock); in find_writable_file()
1959 spin_lock(&tcon->open_file_lock); in find_writable_file()
2397 struct cifs_tcon *tcon; in cifs_strict_fsync() local
2421 tcon = tlink_tcon(smbfile->tlink); in cifs_strict_fsync()
2423 server = tcon->ses->server; in cifs_strict_fsync()
2425 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_strict_fsync()
2439 struct cifs_tcon *tcon; in cifs_fsync() local
2455 tcon = tlink_tcon(smbfile->tlink); in cifs_fsync()
2457 server = tcon->ses->server; in cifs_fsync()
2459 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_fsync()
2706 struct cifs_tcon *tcon; in collect_uncached_write_data() local
2712 tcon = tlink_tcon(ctx->cfile->tlink); in collect_uncached_write_data()
2771 cifs_stats_bytes_written(tcon, ctx->total_len); in collect_uncached_write_data()
2789 struct cifs_tcon *tcon; in cifs_user_writev() local
2807 tcon = tlink_tcon(cfile->tlink); in cifs_user_writev()
2809 if (!tcon->ses->server->ops->async_writev) in cifs_user_writev()
2920 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_strict_writev() local
2928 if (cap_unix(tcon->ses) && in cifs_strict_writev()
2929 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) in cifs_strict_writev()
3222 struct cifs_tcon *tcon; in collect_uncached_read_data() local
3226 tcon = tlink_tcon(ctx->cfile->tlink); in collect_uncached_read_data()
3300 cifs_stats_bytes_read(tcon, ctx->total_len); in collect_uncached_read_data()
3324 struct cifs_tcon *tcon; in cifs_user_readv() local
3334 tcon = tlink_tcon(cfile->tlink); in cifs_user_readv()
3336 if (!tcon->ses->server->ops->async_readv) in cifs_user_readv()
3411 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_strict_readv() local
3425 if (cap_unix(tcon->ses) && in cifs_strict_readv()
3426 (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) && in cifs_strict_readv()
3436 tcon->ses->server->vals->shared_lock_type, in cifs_strict_readv()
3452 struct cifs_tcon *tcon; in cifs_read() local
3473 tcon = tlink_tcon(open_file->tlink); in cifs_read()
3474 server = tcon->ses->server; in cifs_read()
3499 if ((tcon->ses) && !(tcon->ses->capabilities & in cifs_read()
3500 tcon->ses->server->vals->cap_large_files)) { in cifs_read()
3510 io_parms.tcon = tcon; in cifs_read()
3526 cifs_stats_bytes_read(tcon, total_read); in cifs_read()
3970 struct cifs_tcon *tcon = in is_inode_writable() local
3973 spin_lock(&tcon->open_file_lock); in is_inode_writable()
3976 spin_unlock(&tcon->open_file_lock); in is_inode_writable()
3980 spin_unlock(&tcon->open_file_lock); in is_inode_writable()
4135 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_oplock_break() local
4136 struct TCP_Server_Info *server = tcon->ses->server; in cifs_oplock_break()
4177 rc = tcon->ses->server->ops->oplock_response(tcon, &cfile->fid, in cifs_oplock_break()