Lines Matching full:tcon

418 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx)  in smb2_negotiate_wsize()  argument
420 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
433 smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_wsize() argument
435 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
465 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_rsize() argument
467 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
481 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_rsize() argument
483 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
691 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
696 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
698 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
721 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
731 oparms.tcon = tcon; in smb3_qfs_tcon()
738 rc = open_cached_dir(xid, tcon, "", cifs_sb, false, &cfid); in smb3_qfs_tcon()
747 SMB3_request_interfaces(xid, tcon, true /* called during mount */); in smb3_qfs_tcon()
749 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
751 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
753 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
755 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
758 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
764 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
773 oparms.tcon = tcon; in smb2_qfs_tcon()
785 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
787 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
789 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
793 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
803 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, true, &cfid); in smb2_is_path_accessible()
816 oparms.tcon = tcon; in smb2_is_path_accessible()
830 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
835 static int smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
843 static int smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
853 return SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, &data->fi); in smb2_query_file_info()
942 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
953 rc = smb2_query_info_compound(xid, tcon, path, in smb2_query_eas()
992 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
997 struct cifs_ses *ses = tcon->ses; in smb2_set_ea()
1018 if (smb3_encryption_required(tcon)) in smb2_set_ea()
1034 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1045 rc = smb2_query_info_compound(xid, tcon, path, in smb2_set_ea()
1080 oparms.tcon = tcon; in smb2_set_ea()
1087 rc = SMB2_open_init(tcon, server, in smb2_set_ea()
1091 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1114 rc = SMB2_set_info_init(tcon, server, in smb2_set_ea()
1121 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
1129 rc = SMB2_close_init(tcon, server, in smb2_set_ea()
1160 smb2_clear_stats(struct cifs_tcon *tcon) in smb2_clear_stats() argument
1165 atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0); in smb2_clear_stats()
1166 atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0); in smb2_clear_stats()
1171 smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) in smb2_dump_share_caps() argument
1174 if (tcon->capabilities & SMB2_SHARE_CAP_DFS) in smb2_dump_share_caps()
1176 if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY) in smb2_dump_share_caps()
1178 if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT) in smb2_dump_share_caps()
1180 if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER) in smb2_dump_share_caps()
1182 if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC) in smb2_dump_share_caps()
1184 if (tcon->capabilities == 0) in smb2_dump_share_caps()
1186 if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE) in smb2_dump_share_caps()
1188 if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE) in smb2_dump_share_caps()
1190 if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY) in smb2_dump_share_caps()
1192 if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED) in smb2_dump_share_caps()
1195 seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); in smb2_dump_share_caps()
1196 seq_printf(m, "\n\ttid: 0x%x", tcon->tid); in smb2_dump_share_caps()
1197 if (tcon->perf_sector_size) in smb2_dump_share_caps()
1199 tcon->perf_sector_size); in smb2_dump_share_caps()
1200 seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access); in smb2_dump_share_caps()
1204 smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in smb2_print_stats() argument
1206 atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent; in smb2_print_stats()
1207 atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed; in smb2_print_stats()
1211 * totals (requests sent) since those SMBs are per-session not per tcon in smb2_print_stats()
1214 (long long)(tcon->bytes_read), in smb2_print_stats()
1215 (long long)(tcon->bytes_written)); in smb2_print_stats()
1217 atomic_read(&tcon->num_local_opens), in smb2_print_stats()
1218 atomic_read(&tcon->num_remote_opens)); in smb2_print_stats()
1282 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1285 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1289 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1296 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1328 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1336 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1341 pr_warn_once("Server share %s does not support copy range\n", tcon->tree_name); in SMB2_request_res_key()
1371 struct cifs_tcon *tcon, in smb2_ioctl_query_info() argument
1379 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info()
1420 if (smb3_encryption_required(tcon)) in smb2_ioctl_query_info()
1436 oparms.tcon = tcon; in smb2_ioctl_query_info()
1463 rc = SMB2_open_init(tcon, server, in smb2_ioctl_query_info()
1467 smb2_set_next_command(tcon, &rqst[0]); in smb2_ioctl_query_info()
1479 rc = SMB2_ioctl_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1501 rc = SMB2_set_info_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1509 rc = SMB2_query_info_init(tcon, server, in smb2_ioctl_query_info()
1524 smb2_set_next_command(tcon, &rqst[1]); in smb2_ioctl_query_info()
1531 rc = SMB2_close_init(tcon, server, in smb2_ioctl_query_info()
1610 struct cifs_tcon *tcon; in smb2_copychunk_range() local
1634 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1640 cpu_to_le32(min_t(u32, len, tcon->max_bytes_chunk)); in smb2_copychunk_range()
1645 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1708 tcon->max_bytes_chunk) in smb2_copychunk_range()
1709 tcon->max_bytes_chunk = in smb2_copychunk_range()
1730 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1733 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1778 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1803 if (tcon->broken_sparse_sup) in smb2_set_sparse()
1806 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1810 tcon->broken_sparse_sup = true; in smb2_set_sparse()
1824 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
1840 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
1843 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
1857 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
1860 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
1874 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
1887 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
1903 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
1906 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
1911 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
1921 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
1941 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
1973 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2035 struct cifs_tcon *tcon; in smb3_notify() local
2069 tcon = cifs_sb_master_tcon(cifs_sb); in smb3_notify()
2070 oparms.tcon = tcon; in smb3_notify()
2082 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2086 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2106 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2122 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2129 if (smb3_encryption_required(tcon)) in smb2_query_dir_first()
2141 oparms.tcon = tcon; in smb2_query_dir_first()
2148 rc = SMB2_open_init(tcon, server, in smb2_query_dir_first()
2152 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_dir_first()
2162 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2172 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2190 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2193 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2197 atomic_inc(&tcon->num_remote_opens); in smb2_query_dir_first()
2202 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2208 rc = smb2_parse_query_directory(tcon, &rsp_iov[1], resp_buftype[1], in smb2_query_dir_first()
2211 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2212 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2217 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2218 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2230 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2234 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2239 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2242 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2311 struct cifs_tcon *tcon; in smb2_is_network_name_deleted() local
2321 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_network_name_deleted()
2322 if (tcon->tid == le32_to_cpu(shdr->Id.SyncId.TreeId)) { in smb2_is_network_name_deleted()
2323 spin_lock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2324 tcon->need_reconnect = true; in smb2_is_network_name_deleted()
2325 spin_unlock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2328 tcon->tree_name); in smb2_is_network_name_deleted()
2337 smb2_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid, in smb2_oplock_response() argument
2340 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2341 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2344 return SMB2_oplock_break(0, tcon, fid->persistent_fid, in smb2_oplock_response()
2365 smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst) in smb2_set_next_command() argument
2368 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command()
2386 if (!smb3_encryption_required(tcon)) { in smb2_set_next_command()
2426 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2432 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound()
2454 if (smb3_encryption_required(tcon)) in smb2_query_info_compound()
2465 open_cached_dir(xid, tcon, path, cifs_sb, false, in smb2_query_info_compound()
2472 oparms.tcon = tcon; in smb2_query_info_compound()
2479 rc = SMB2_open_init(tcon, server, in smb2_query_info_compound()
2483 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_info_compound()
2490 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2498 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2509 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_info_compound()
2517 rc = SMB2_close_init(tcon, server, in smb2_query_info_compound()
2535 tcon->need_reconnect = true; in smb2_query_info_compound()
2537 tcon->tree_name); in smb2_query_info_compound()
2557 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2567 rc = smb2_query_info_compound(xid, tcon, "", in smb2_queryfs()
2593 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2602 if (!tcon->posix_extensions) in smb311_queryfs()
2603 return smb2_queryfs(xid, tcon, cifs_sb, buf); in smb311_queryfs()
2605 oparms.tcon = tcon; in smb311_queryfs()
2617 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2620 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2670 struct cifs_tcon *tcon; in smb2_get_dfs_refer() local
2679 * Try to use the IPC tcon, otherwise just use any in smb2_get_dfs_refer()
2681 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2682 if (tcon == NULL) { in smb2_get_dfs_refer()
2684 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2687 if (tcon) in smb2_get_dfs_refer()
2688 tcon->tc_count++; in smb2_get_dfs_refer()
2692 if (tcon == NULL) { in smb2_get_dfs_refer()
2693 cifs_dbg(VFS, "session %p has no tcon available for a dfs referral request\n", in smb2_get_dfs_refer()
2721 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
2746 if (tcon && !tcon->ipc) { in smb2_get_dfs_refer()
2749 tcon->tc_count--; in smb2_get_dfs_refer()
2751 WARN_ON(tcon->tc_count < 0); in smb2_get_dfs_refer()
2854 smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_symlink() argument
2864 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_symlink()
2882 if (smb3_encryption_required(tcon)) in smb2_query_symlink()
2899 oparms.tcon = tcon; in smb2_query_symlink()
2906 rc = SMB2_open_init(tcon, server, in smb2_query_symlink()
2910 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_symlink()
2918 rc = SMB2_ioctl_init(tcon, server, in smb2_query_symlink()
2927 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_symlink()
2936 rc = SMB2_close_init(tcon, server, in smb2_query_symlink()
2943 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_symlink()
2996 smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_reparse_tag() argument
3005 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_reparse_tag()
3019 if (smb3_encryption_required(tcon)) in smb2_query_reparse_tag()
3039 oparms.tcon = tcon; in smb2_query_reparse_tag()
3046 rc = SMB2_open_init(tcon, server, in smb2_query_reparse_tag()
3050 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_reparse_tag()
3058 rc = SMB2_ioctl_init(tcon, server, in smb2_query_reparse_tag()
3067 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_reparse_tag()
3076 rc = SMB2_close_init(tcon, server, in smb2_query_reparse_tag()
3083 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_reparse_tag()
3158 struct cifs_tcon *tcon; in get_smb2_acl_by_path() local
3168 tcon = tlink_tcon(tlink); in get_smb2_acl_by_path()
3178 oparms.tcon = tcon; in get_smb2_acl_by_path()
3200 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3219 struct cifs_tcon *tcon; in set_smb2_acl() local
3230 tcon = tlink_tcon(tlink); in set_smb2_acl()
3247 oparms.tcon = tcon; in set_smb2_acl()
3261 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3288 static long smb3_zero_data(struct file *file, struct cifs_tcon *tcon, in smb3_zero_data() argument
3299 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3306 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
3309 struct cifs_ses *ses = tcon->ses; in smb3_zero_range()
3319 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3336 rc = smb3_zero_data(file, tcon, offset, len, xid); in smb3_zero_range()
3345 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3354 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3357 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3362 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
3377 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3394 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3407 struct cifs_tcon *tcon, in smb3_simple_fallocate_write_range() argument
3419 io_parms.tcon = tcon; in smb3_simple_fallocate_write_range()
3444 struct cifs_tcon *tcon, in smb3_simple_fallocate_range() argument
3456 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3477 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3496 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3527 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
3542 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3543 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3548 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3562 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3565 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3620 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3639 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3644 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3645 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3647 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3648 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3654 static long smb3_collapse_range(struct file *file, struct cifs_tcon *tcon, in smb3_collapse_range() argument
3689 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3707 static long smb3_insert_range(struct file *file, struct cifs_tcon *tcon, in smb3_insert_range() argument
3736 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3745 rc = smb3_zero_data(file, tcon, off, len, xid); in smb3_insert_range()
3758 static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) in smb3_llseek() argument
3788 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3801 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3842 static int smb3_fiemap(struct cifs_tcon *tcon, in smb3_fiemap() argument
3861 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3917 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
3922 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
3925 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
3926 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
3928 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
3930 return smb3_collapse_range(file, tcon, off, len); in smb3_fallocate()
3932 return smb3_insert_range(file, tcon, off, len); in smb3_fallocate()
3934 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()
5088 struct dentry *dentry, struct cifs_tcon *tcon, in smb2_make_node() argument
5122 oparms.tcon = tcon; in smb2_make_node()
5132 if (tcon->ses->server->oplocks) in smb2_make_node()
5136 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, &buf); in smb2_make_node()
5147 io_parms.tcon = tcon; in smb2_make_node()
5156 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5162 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5165 tcon->ses->server->ops->close(xid, tcon, &fid); in smb2_make_node()