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()
1076 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1092 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_query_eas()
1132 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1137 struct cifs_ses *ses = tcon->ses; in smb2_set_ea()
1158 if (smb3_encryption_required(tcon)) in smb2_set_ea()
1174 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1185 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_set_ea()
1220 oparms.tcon = tcon; in smb2_set_ea()
1227 rc = SMB2_open_init(tcon, server, in smb2_set_ea()
1231 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1254 rc = SMB2_set_info_init(tcon, server, in smb2_set_ea()
1261 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
1269 rc = SMB2_close_init(tcon, server, in smb2_set_ea()
1300 smb2_clear_stats(struct cifs_tcon *tcon) in smb2_clear_stats() argument
1305 atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0); in smb2_clear_stats()
1306 atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0); in smb2_clear_stats()
1311 smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) in smb2_dump_share_caps() argument
1314 if (tcon->capabilities & SMB2_SHARE_CAP_DFS) in smb2_dump_share_caps()
1316 if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY) in smb2_dump_share_caps()
1318 if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT) in smb2_dump_share_caps()
1320 if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER) in smb2_dump_share_caps()
1322 if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC) in smb2_dump_share_caps()
1324 if (tcon->capabilities == 0) in smb2_dump_share_caps()
1326 if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE) in smb2_dump_share_caps()
1328 if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE) in smb2_dump_share_caps()
1330 if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY) in smb2_dump_share_caps()
1332 if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED) in smb2_dump_share_caps()
1335 seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); in smb2_dump_share_caps()
1336 seq_printf(m, "\n\ttid: 0x%x", tcon->tid); in smb2_dump_share_caps()
1337 if (tcon->perf_sector_size) in smb2_dump_share_caps()
1339 tcon->perf_sector_size); in smb2_dump_share_caps()
1340 seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access); in smb2_dump_share_caps()
1344 smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in smb2_print_stats() argument
1346 atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent; in smb2_print_stats()
1347 atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed; in smb2_print_stats()
1351 * totals (requests sent) since those SMBs are per-session not per tcon in smb2_print_stats()
1354 (long long)(tcon->bytes_read), in smb2_print_stats()
1355 (long long)(tcon->bytes_written)); in smb2_print_stats()
1357 atomic_read(&tcon->num_local_opens), in smb2_print_stats()
1358 atomic_read(&tcon->num_remote_opens)); in smb2_print_stats()
1422 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1425 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1429 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1436 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1468 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1476 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1508 struct cifs_tcon *tcon, in smb2_ioctl_query_info() argument
1516 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info()
1557 if (smb3_encryption_required(tcon)) in smb2_ioctl_query_info()
1573 oparms.tcon = tcon; in smb2_ioctl_query_info()
1600 rc = SMB2_open_init(tcon, server, in smb2_ioctl_query_info()
1604 smb2_set_next_command(tcon, &rqst[0]); in smb2_ioctl_query_info()
1616 rc = SMB2_ioctl_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1638 rc = SMB2_set_info_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1646 rc = SMB2_query_info_init(tcon, server, in smb2_ioctl_query_info()
1661 smb2_set_next_command(tcon, &rqst[1]); in smb2_ioctl_query_info()
1668 rc = SMB2_close_init(tcon, server, in smb2_ioctl_query_info()
1747 struct cifs_tcon *tcon; in smb2_copychunk_range() local
1780 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1786 cpu_to_le32(min_t(u32, len, tcon->max_bytes_chunk)); in smb2_copychunk_range()
1791 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1854 tcon->max_bytes_chunk) in smb2_copychunk_range()
1855 tcon->max_bytes_chunk = in smb2_copychunk_range()
1876 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1879 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1924 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1949 if (tcon->broken_sparse_sup) in smb2_set_sparse()
1952 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1956 tcon->broken_sparse_sup = true; in smb2_set_sparse()
1970 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
1986 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
1989 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
2003 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
2006 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
2020 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2033 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2049 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2052 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2057 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2067 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2087 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2119 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2180 struct cifs_tcon *tcon; in smb3_notify() local
2203 tcon = cifs_sb_master_tcon(cifs_sb); in smb3_notify()
2204 oparms.tcon = tcon; in smb3_notify()
2216 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2219 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2230 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2246 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2252 if (smb3_encryption_required(tcon)) in smb2_query_dir_first()
2264 oparms.tcon = tcon; in smb2_query_dir_first()
2271 rc = SMB2_open_init(tcon, server, in smb2_query_dir_first()
2275 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_dir_first()
2285 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2294 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2309 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2312 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2316 atomic_inc(&tcon->num_remote_opens); in smb2_query_dir_first()
2321 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2327 rc = smb2_parse_query_directory(tcon, &rsp_iov[1], resp_buftype[1], in smb2_query_dir_first()
2330 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2331 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2336 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2337 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2349 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2353 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2358 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2361 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2415 smb2_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid, in smb2_oplock_response() argument
2418 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2419 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2422 return SMB2_oplock_break(0, tcon, fid->persistent_fid, in smb2_oplock_response()
2443 smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst) in smb2_set_next_command() argument
2446 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command()
2464 if (!smb3_encryption_required(tcon)) { in smb2_set_next_command()
2504 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2510 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound()
2524 if (smb3_encryption_required(tcon)) in smb2_query_info_compound()
2535 oparms.tcon = tcon; in smb2_query_info_compound()
2542 rc = SMB2_open_init(tcon, server, in smb2_query_info_compound()
2546 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_info_compound()
2552 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2559 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_info_compound()
2566 rc = SMB2_close_init(tcon, server, in smb2_query_info_compound()
2578 tcon->need_reconnect = true; in smb2_query_info_compound()
2580 tcon->treeName); in smb2_query_info_compound()
2597 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2608 rc = smb2_query_info_compound(xid, tcon, &utf16_path, in smb2_queryfs()
2634 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2643 if (!tcon->posix_extensions) in smb311_queryfs()
2644 return smb2_queryfs(xid, tcon, cifs_sb, buf); in smb311_queryfs()
2646 oparms.tcon = tcon; in smb311_queryfs()
2658 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2661 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2711 struct cifs_tcon *tcon; in smb2_get_dfs_refer() local
2719 * Try to use the IPC tcon, otherwise just use any in smb2_get_dfs_refer()
2721 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2722 if (tcon == NULL) { in smb2_get_dfs_refer()
2724 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2727 if (tcon) in smb2_get_dfs_refer()
2728 tcon->tc_count++; in smb2_get_dfs_refer()
2732 if (tcon == NULL) { in smb2_get_dfs_refer()
2733 cifs_dbg(VFS, "session %p has no tcon available for a dfs referral request\n", in smb2_get_dfs_refer()
2761 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
2783 if (tcon && !tcon->ipc) { in smb2_get_dfs_refer()
2786 tcon->tc_count--; in smb2_get_dfs_refer()
2892 smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_symlink() argument
2904 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_symlink()
2926 if (smb3_encryption_required(tcon)) in smb2_query_symlink()
2943 oparms.tcon = tcon; in smb2_query_symlink()
2950 rc = SMB2_open_init(tcon, server, in smb2_query_symlink()
2954 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_symlink()
2962 rc = SMB2_ioctl_init(tcon, server, in smb2_query_symlink()
2971 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_symlink()
2980 rc = SMB2_close_init(tcon, server, in smb2_query_symlink()
2987 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_symlink()
3080 smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_reparse_tag() argument
3089 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_reparse_tag()
3103 if (smb3_encryption_required(tcon)) in smb2_query_reparse_tag()
3123 oparms.tcon = tcon; in smb2_query_reparse_tag()
3130 rc = SMB2_open_init(tcon, server, in smb2_query_reparse_tag()
3134 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_reparse_tag()
3142 rc = SMB2_ioctl_init(tcon, server, in smb2_query_reparse_tag()
3151 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_reparse_tag()
3160 rc = SMB2_close_init(tcon, server, in smb2_query_reparse_tag()
3167 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_reparse_tag()
3241 struct cifs_tcon *tcon; in get_smb2_acl_by_path() local
3251 tcon = tlink_tcon(tlink); in get_smb2_acl_by_path()
3261 oparms.tcon = tcon; in get_smb2_acl_by_path()
3279 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3298 struct cifs_tcon *tcon; in set_smb2_acl() local
3309 tcon = tlink_tcon(tlink); in set_smb2_acl()
3324 oparms.tcon = tcon; in set_smb2_acl()
3338 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3365 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
3368 struct cifs_ses *ses = tcon->ses; in smb3_zero_range()
3382 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3396 tcon->tid, ses->Suid, offset, len, rc); in smb3_zero_range()
3406 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3419 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3426 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3429 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3434 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
3449 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3465 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3477 struct cifs_tcon *tcon, in smb3_simple_fallocate_write_range() argument
3489 io_parms.tcon = tcon; in smb3_simple_fallocate_write_range()
3514 struct cifs_tcon *tcon, in smb3_simple_fallocate_range() argument
3526 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3547 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3566 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3597 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
3612 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3613 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3618 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3632 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3635 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3690 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3709 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3714 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3715 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3717 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3718 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3724 static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) in smb3_llseek() argument
3754 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3767 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3808 static int smb3_fiemap(struct cifs_tcon *tcon, in smb3_fiemap() argument
3827 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3883 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
3888 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
3891 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
3892 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
3894 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
3896 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()
5031 struct dentry *dentry, struct cifs_tcon *tcon, in smb2_make_node() argument
5071 oparms.tcon = tcon; in smb2_make_node()
5081 if (tcon->ses->server->oplocks) in smb2_make_node()
5085 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in smb2_make_node()
5096 io_parms.tcon = tcon; in smb2_make_node()
5105 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5111 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5114 tcon->ses->server->ops->close(xid, tcon, &fid); in smb2_make_node()