Lines Matching full:tcon
342 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info) in smb2_negotiate_wsize() argument
344 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
357 smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info) in smb3_negotiate_wsize() argument
359 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
389 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb_vol *volume_info) in smb2_negotiate_rsize() argument
391 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
405 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb_vol *volume_info) in smb3_negotiate_rsize() argument
407 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
580 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon) in SMB3_request_interfaces() argument
587 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
589 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
630 SMB2_close(0, cfid->tcon, cfid->fid->persistent_fid, in smb2_close_cached_fid()
672 int open_shroot(unsigned int xid, struct cifs_tcon *tcon, in open_shroot() argument
676 struct cifs_ses *ses = tcon->ses; in open_shroot()
691 mutex_lock(&tcon->crfid.fid_mutex); in open_shroot()
692 if (tcon->crfid.is_valid) { in open_shroot()
694 *cfid = &tcon->crfid; in open_shroot()
695 kref_get(&tcon->crfid.refcount); in open_shroot()
696 mutex_unlock(&tcon->crfid.fid_mutex); in open_shroot()
707 mutex_unlock(&tcon->crfid.fid_mutex); in open_shroot()
709 if (smb3_encryption_required(tcon)) in open_shroot()
715 pfid = tcon->crfid.fid; in open_shroot()
727 oparms.tcon = tcon; in open_shroot()
734 rc = SMB2_open_init(tcon, server, in open_shroot()
738 smb2_set_next_command(tcon, &rqst[0]); in open_shroot()
744 rc = SMB2_query_info_init(tcon, server, in open_shroot()
758 mutex_lock(&tcon->crfid.fid_mutex); in open_shroot()
765 if (tcon->crfid.is_valid) { in open_shroot()
779 memcpy(pfid, tcon->crfid.fid, sizeof(*pfid)); in open_shroot()
780 kref_get(&tcon->crfid.refcount); in open_shroot()
782 mutex_unlock(&tcon->crfid.fid_mutex); in open_shroot()
786 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in open_shroot()
796 tcon->need_reconnect = true; in open_shroot()
798 tcon->treeName); in open_shroot()
803 atomic_inc(&tcon->num_remote_opens); in open_shroot()
812 memcpy(tcon->crfid.fid, pfid, sizeof(struct cifs_fid)); in open_shroot()
813 tcon->crfid.tcon = tcon; in open_shroot()
814 tcon->crfid.is_valid = true; in open_shroot()
815 kref_init(&tcon->crfid.refcount); in open_shroot()
819 kref_get(&tcon->crfid.refcount); in open_shroot()
820 tcon->crfid.has_lease = true; in open_shroot()
835 (char *)&tcon->crfid.file_all_info)) in open_shroot()
836 tcon->crfid.file_all_info_is_valid = true; in open_shroot()
839 mutex_unlock(&tcon->crfid.fid_mutex); in open_shroot()
846 *cfid = &tcon->crfid; in open_shroot()
851 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
859 bool no_cached_open = tcon->nohandlecache; in smb3_qfs_tcon()
862 oparms.tcon = tcon; in smb3_qfs_tcon()
873 rc = open_shroot(xid, tcon, cifs_sb, &cfid); in smb3_qfs_tcon()
880 SMB3_request_interfaces(xid, tcon); in smb3_qfs_tcon()
882 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
884 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
886 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
888 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
891 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
897 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
906 oparms.tcon = tcon; in smb2_qfs_tcon()
918 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
920 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
922 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
926 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
935 if ((*full_path == 0) && tcon->crfid.is_valid) in smb2_is_path_accessible()
942 oparms.tcon = tcon; in smb2_is_path_accessible()
956 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
962 smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
971 smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
982 rc = SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, in smb2_query_file_info()
1075 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1091 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_query_eas()
1131 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1136 struct cifs_ses *ses = tcon->ses; in smb2_set_ea()
1157 if (smb3_encryption_required(tcon)) in smb2_set_ea()
1173 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1184 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_set_ea()
1219 oparms.tcon = tcon; in smb2_set_ea()
1226 rc = SMB2_open_init(tcon, server, in smb2_set_ea()
1230 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1253 rc = SMB2_set_info_init(tcon, server, in smb2_set_ea()
1258 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
1266 rc = SMB2_close_init(tcon, server, in smb2_set_ea()
1295 smb2_clear_stats(struct cifs_tcon *tcon) in smb2_clear_stats() argument
1300 atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0); in smb2_clear_stats()
1301 atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0); in smb2_clear_stats()
1306 smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) in smb2_dump_share_caps() argument
1309 if (tcon->capabilities & SMB2_SHARE_CAP_DFS) in smb2_dump_share_caps()
1311 if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY) in smb2_dump_share_caps()
1313 if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT) in smb2_dump_share_caps()
1315 if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER) in smb2_dump_share_caps()
1317 if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC) in smb2_dump_share_caps()
1319 if (tcon->capabilities == 0) in smb2_dump_share_caps()
1321 if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE) in smb2_dump_share_caps()
1323 if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE) in smb2_dump_share_caps()
1325 if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY) in smb2_dump_share_caps()
1327 if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED) in smb2_dump_share_caps()
1330 seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); in smb2_dump_share_caps()
1331 seq_printf(m, "\n\ttid: 0x%x", tcon->tid); in smb2_dump_share_caps()
1332 if (tcon->perf_sector_size) in smb2_dump_share_caps()
1334 tcon->perf_sector_size); in smb2_dump_share_caps()
1335 seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access); in smb2_dump_share_caps()
1339 smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in smb2_print_stats() argument
1341 atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent; in smb2_print_stats()
1342 atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed; in smb2_print_stats()
1346 * totals (requests sent) since those SMBs are per-session not per tcon in smb2_print_stats()
1349 (long long)(tcon->bytes_read), in smb2_print_stats()
1350 (long long)(tcon->bytes_written)); in smb2_print_stats()
1352 atomic_read(&tcon->num_local_opens), in smb2_print_stats()
1353 atomic_read(&tcon->num_remote_opens)); in smb2_print_stats()
1417 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1420 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1424 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1431 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1463 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1471 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1504 struct cifs_tcon *tcon, in smb2_ioctl_query_info() argument
1512 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info()
1553 if (smb3_encryption_required(tcon)) in smb2_ioctl_query_info()
1569 oparms.tcon = tcon; in smb2_ioctl_query_info()
1596 rc = SMB2_open_init(tcon, server, in smb2_ioctl_query_info()
1600 smb2_set_next_command(tcon, &rqst[0]); in smb2_ioctl_query_info()
1612 rc = SMB2_ioctl_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1634 rc = SMB2_set_info_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1642 rc = SMB2_query_info_init(tcon, server, in smb2_ioctl_query_info()
1657 smb2_set_next_command(tcon, &rqst[1]); in smb2_ioctl_query_info()
1664 rc = SMB2_close_init(tcon, server, in smb2_ioctl_query_info()
1743 struct cifs_tcon *tcon; in smb2_copychunk_range() local
1768 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1774 cpu_to_le32(min_t(u32, len, tcon->max_bytes_chunk)); in smb2_copychunk_range()
1779 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1843 tcon->max_bytes_chunk) in smb2_copychunk_range()
1844 tcon->max_bytes_chunk = in smb2_copychunk_range()
1865 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1868 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1913 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1938 if (tcon->broken_sparse_sup) in smb2_set_sparse()
1941 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1946 tcon->broken_sparse_sup = true; in smb2_set_sparse()
1960 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
1976 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
1979 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
1993 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
1996 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
2010 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2023 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2040 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2043 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2048 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2058 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2079 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2111 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2173 struct cifs_tcon *tcon; in smb3_notify() local
2196 tcon = cifs_sb_master_tcon(cifs_sb); in smb3_notify()
2197 oparms.tcon = tcon; in smb3_notify()
2209 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2212 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2223 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2239 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2245 if (smb3_encryption_required(tcon)) in smb2_query_dir_first()
2257 oparms.tcon = tcon; in smb2_query_dir_first()
2264 rc = SMB2_open_init(tcon, server, in smb2_query_dir_first()
2268 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_dir_first()
2278 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2287 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2302 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2305 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2309 atomic_inc(&tcon->num_remote_opens); in smb2_query_dir_first()
2314 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2320 rc = smb2_parse_query_directory(tcon, &rsp_iov[1], resp_buftype[1], in smb2_query_dir_first()
2323 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2324 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2329 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2330 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2342 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2346 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2351 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2354 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2408 smb2_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid, in smb2_oplock_response() argument
2411 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2412 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2415 return SMB2_oplock_break(0, tcon, fid->persistent_fid, in smb2_oplock_response()
2436 smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst) in smb2_set_next_command() argument
2439 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command()
2457 if (!smb3_encryption_required(tcon)) { in smb2_set_next_command()
2497 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2503 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound()
2517 if (smb3_encryption_required(tcon)) in smb2_query_info_compound()
2528 oparms.tcon = tcon; in smb2_query_info_compound()
2535 rc = SMB2_open_init(tcon, server, in smb2_query_info_compound()
2539 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_info_compound()
2545 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2552 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_info_compound()
2559 rc = SMB2_close_init(tcon, server, in smb2_query_info_compound()
2571 tcon->need_reconnect = true; in smb2_query_info_compound()
2573 tcon->treeName); in smb2_query_info_compound()
2590 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2601 rc = smb2_query_info_compound(xid, tcon, &utf16_path, in smb2_queryfs()
2627 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2636 if (!tcon->posix_extensions) in smb311_queryfs()
2637 return smb2_queryfs(xid, tcon, cifs_sb, buf); in smb311_queryfs()
2639 oparms.tcon = tcon; in smb311_queryfs()
2651 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2654 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2704 struct cifs_tcon *tcon; in smb2_get_dfs_refer() local
2712 * Try to use the IPC tcon, otherwise just use any in smb2_get_dfs_refer()
2714 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2715 if (tcon == NULL) { in smb2_get_dfs_refer()
2717 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2720 if (tcon) in smb2_get_dfs_refer()
2721 tcon->tc_count++; in smb2_get_dfs_refer()
2725 if (tcon == NULL) { in smb2_get_dfs_refer()
2726 cifs_dbg(VFS, "session %p has no tcon available for a dfs referral request\n", in smb2_get_dfs_refer()
2754 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
2777 if (tcon && !tcon->ipc) { in smb2_get_dfs_refer()
2780 tcon->tc_count--; in smb2_get_dfs_refer()
2886 smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_symlink() argument
2898 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_symlink()
2920 if (smb3_encryption_required(tcon)) in smb2_query_symlink()
2937 oparms.tcon = tcon; in smb2_query_symlink()
2944 rc = SMB2_open_init(tcon, server, in smb2_query_symlink()
2948 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_symlink()
2956 rc = SMB2_ioctl_init(tcon, server, in smb2_query_symlink()
2966 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_symlink()
2975 rc = SMB2_close_init(tcon, server, in smb2_query_symlink()
2982 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_symlink()
3075 smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_reparse_tag() argument
3084 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_reparse_tag()
3098 if (smb3_encryption_required(tcon)) in smb2_query_reparse_tag()
3118 oparms.tcon = tcon; in smb2_query_reparse_tag()
3125 rc = SMB2_open_init(tcon, server, in smb2_query_reparse_tag()
3129 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_reparse_tag()
3137 rc = SMB2_ioctl_init(tcon, server, in smb2_query_reparse_tag()
3147 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_reparse_tag()
3156 rc = SMB2_close_init(tcon, server, in smb2_query_reparse_tag()
3163 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_reparse_tag()
3237 struct cifs_tcon *tcon; in get_smb2_acl_by_path() local
3247 tcon = tlink_tcon(tlink); in get_smb2_acl_by_path()
3257 oparms.tcon = tcon; in get_smb2_acl_by_path()
3275 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3294 struct cifs_tcon *tcon; in set_smb2_acl() local
3305 tcon = tlink_tcon(tlink); in set_smb2_acl()
3320 oparms.tcon = tcon; in set_smb2_acl()
3334 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3361 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
3364 struct cifs_ses *ses = tcon->ses; in smb3_zero_range()
3378 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3392 tcon->tid, ses->Suid, offset, len, rc); in smb3_zero_range()
3402 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3415 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3422 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3425 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3430 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
3446 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3463 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3473 struct cifs_tcon *tcon, in smb3_simple_fallocate_write_range() argument
3485 io_parms.tcon = tcon; in smb3_simple_fallocate_write_range()
3510 struct cifs_tcon *tcon, in smb3_simple_fallocate_range() argument
3522 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3543 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3562 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3593 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
3608 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3609 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3614 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3628 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3631 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3686 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3705 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3710 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3711 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3713 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3714 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3720 static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) in smb3_llseek() argument
3750 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3763 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3804 static int smb3_fiemap(struct cifs_tcon *tcon, in smb3_fiemap() argument
3823 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3879 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
3884 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
3887 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
3888 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
3890 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
3892 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()
5025 struct dentry *dentry, struct cifs_tcon *tcon, in smb2_make_node() argument
5065 oparms.tcon = tcon; in smb2_make_node()
5075 if (tcon->ses->server->oplocks) in smb2_make_node()
5079 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in smb2_make_node()
5090 io_parms.tcon = tcon; in smb2_make_node()
5099 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5105 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5108 tcon->ses->server->ops->close(xid, tcon, &fid); in smb2_make_node()