Lines Matching full:tcon
438 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_wsize() argument
440 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
453 smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_wsize() argument
455 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
485 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_rsize() argument
487 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
501 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_rsize() argument
503 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
759 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
764 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
773 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
806 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
817 .tcon = tcon, in smb3_qfs_tcon()
825 rc = open_cached_dir(xid, tcon, "", cifs_sb, false, &cfid); in smb3_qfs_tcon()
834 SMB3_request_interfaces(xid, tcon, true /* called during mount */); in smb3_qfs_tcon()
836 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
838 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
840 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
842 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
845 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
851 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
861 .tcon = tcon, in smb2_qfs_tcon()
874 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
876 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
878 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
882 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
895 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, true, &cfid); in smb2_is_path_accessible()
909 .tcon = tcon, in smb2_is_path_accessible()
926 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_is_path_accessible()
941 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
949 static int smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
957 static int smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
967 return SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, &data->fi); in smb2_query_file_info()
1056 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1067 rc = smb2_query_info_compound(xid, tcon, path, in smb2_query_eas()
1105 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1111 struct cifs_ses *ses = tcon->ses; in smb2_set_ea()
1136 if (smb3_encryption_required(tcon)) in smb2_set_ea()
1158 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1169 rc = smb2_query_info_compound(xid, tcon, path, in smb2_set_ea()
1203 .tcon = tcon, in smb2_set_ea()
1212 rc = SMB2_open_init(tcon, server, in smb2_set_ea()
1216 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1238 rc = SMB2_set_info_init(tcon, server, in smb2_set_ea()
1245 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
1251 rc = SMB2_close_init(tcon, server, in smb2_set_ea()
1281 smb2_should_replay(tcon, &retries, &cur_sleep)) 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 return 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()
1467 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1475 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1480 pr_warn_once("Server share %s does not support copy range\n", tcon->tree_name); in SMB2_request_res_key()
1500 struct cifs_tcon *tcon, in smb2_ioctl_query_info() argument
1508 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info()
1556 if (smb3_encryption_required(tcon)) in smb2_ioctl_query_info()
1572 .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()
1742 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_ioctl_query_info()
1758 struct cifs_tcon *tcon; in smb2_copychunk_range() local
1782 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1788 cpu_to_le32(min_t(u64, len, tcon->max_bytes_chunk)); in smb2_copychunk_range()
1793 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1856 tcon->max_bytes_chunk) in smb2_copychunk_range()
1857 tcon->max_bytes_chunk = in smb2_copychunk_range()
1878 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1881 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1926 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1951 if (tcon->broken_sparse_sup) in smb2_set_sparse()
1954 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1958 tcon->broken_sparse_sup = true; in smb2_set_sparse()
1972 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
1987 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
1990 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
2004 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
2007 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
2021 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2034 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2050 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2053 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2058 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2068 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2088 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2120 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2182 struct cifs_tcon *tcon; in smb3_notify() local
2216 tcon = cifs_sb_master_tcon(cifs_sb); in smb3_notify()
2218 .tcon = tcon, in smb3_notify()
2231 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2235 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2255 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2278 server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2284 if (smb3_encryption_required(tcon)) in smb2_query_dir_first()
2297 .tcon = tcon, in smb2_query_dir_first()
2306 rc = SMB2_open_init(tcon, server, in smb2_query_dir_first()
2310 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_dir_first()
2320 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2334 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2349 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2352 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2356 atomic_inc(&tcon->num_remote_opens); in smb2_query_dir_first()
2361 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2367 rc = smb2_parse_query_directory(tcon, &rsp_iov[1], resp_buftype[1], in smb2_query_dir_first()
2370 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2371 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2376 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2377 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2387 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_dir_first()
2394 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2398 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2403 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2406 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2475 struct cifs_tcon *tcon; in smb2_is_network_name_deleted() local
2487 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_network_name_deleted()
2488 if (tcon->tid == le32_to_cpu(shdr->Id.SyncId.TreeId)) { in smb2_is_network_name_deleted()
2489 spin_lock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2490 tcon->need_reconnect = true; in smb2_is_network_name_deleted()
2491 spin_unlock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2494 tcon->tree_name); in smb2_is_network_name_deleted()
2505 smb2_oplock_response(struct cifs_tcon *tcon, __u64 persistent_fid, in smb2_oplock_response() argument
2508 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2509 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2512 return SMB2_oplock_break(0, tcon, persistent_fid, volatile_fid, in smb2_oplock_response()
2548 smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst) in smb2_set_next_command() argument
2551 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command()
2569 if (!smb3_encryption_required(tcon)) { in smb2_set_next_command()
2607 bool smb2_should_replay(struct cifs_tcon *tcon, in smb2_should_replay() argument
2614 if (tcon->retry || (*pretries)++ < tcon->ses->server->retrans) { in smb2_should_replay()
2630 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2637 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound()
2663 if (smb3_encryption_required(tcon)) in smb2_query_info_compound()
2679 open_cached_dir(xid, tcon, path, cifs_sb, false, in smb2_query_info_compound()
2686 .tcon = tcon, in smb2_query_info_compound()
2695 rc = SMB2_open_init(tcon, server, in smb2_query_info_compound()
2699 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_info_compound()
2705 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2713 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2724 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_info_compound()
2731 rc = SMB2_close_init(tcon, server, in smb2_query_info_compound()
2757 tcon->need_reconnect = true; in smb2_query_info_compound()
2759 tcon->tree_name); in smb2_query_info_compound()
2779 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_info_compound()
2786 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2796 rc = smb2_query_info_compound(xid, tcon, path, in smb2_queryfs()
2817 trace_smb3_qfs_done(xid, tcon->tid, tcon->ses->Suid, tcon->tree_name, rc); in smb2_queryfs()
2823 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2832 if (!tcon->posix_extensions) in smb311_queryfs()
2833 return smb2_queryfs(xid, tcon, path, cifs_sb, buf); in smb311_queryfs()
2836 .tcon = tcon, in smb311_queryfs()
2854 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2857 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2907 struct cifs_tcon *tcon; in smb2_get_dfs_refer() local
2916 * Try to use the IPC tcon, otherwise just use any in smb2_get_dfs_refer()
2918 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2919 if (tcon == NULL) { in smb2_get_dfs_refer()
2921 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2924 if (tcon) { in smb2_get_dfs_refer()
2925 tcon->tc_count++; in smb2_get_dfs_refer()
2926 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
2932 if (tcon == NULL) { in smb2_get_dfs_refer()
2933 cifs_dbg(VFS, "session %p has no tcon available for a dfs referral request\n", in smb2_get_dfs_refer()
2961 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
2988 if (tcon && !tcon->ipc) { in smb2_get_dfs_refer()
2991 tcon->tc_count--; in smb2_get_dfs_refer()
2992 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
2995 WARN_ON(tcon->tc_count < 0); in smb2_get_dfs_refer()
3041 struct cifs_tcon *tcon; in get_smb2_acl_by_path() local
3051 tcon = tlink_tcon(tlink); in get_smb2_acl_by_path()
3062 .tcon = tcon, in get_smb2_acl_by_path()
3087 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3106 struct cifs_tcon *tcon; in set_smb2_acl() local
3117 tcon = tlink_tcon(tlink); in set_smb2_acl()
3135 .tcon = tcon, in set_smb2_acl()
3149 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3176 static long smb3_zero_data(struct file *file, struct cifs_tcon *tcon, in smb3_zero_data() argument
3187 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3194 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
3198 struct cifs_ses *ses = tcon->ses; in smb3_zero_range()
3209 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3236 rc = smb3_zero_data(file, tcon, offset, len, xid); in smb3_zero_range()
3245 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3258 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3261 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3266 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
3282 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3299 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3318 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3333 struct cifs_tcon *tcon, in smb3_simple_fallocate_write_range() argument
3345 io_parms.tcon = tcon; in smb3_simple_fallocate_write_range()
3370 struct cifs_tcon *tcon, in smb3_simple_fallocate_range() argument
3382 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3403 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3422 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3453 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
3468 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3469 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3474 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3488 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3491 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3546 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3565 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3570 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3571 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3573 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3574 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3580 static long smb3_collapse_range(struct file *file, struct cifs_tcon *tcon, in smb3_collapse_range() argument
3614 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3632 static long smb3_insert_range(struct file *file, struct cifs_tcon *tcon, in smb3_insert_range() argument
3660 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3672 rc = smb3_zero_data(file, tcon, off, len, xid); in smb3_insert_range()
3685 static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) in smb3_llseek() argument
3715 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3728 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3769 static int smb3_fiemap(struct cifs_tcon *tcon, in smb3_fiemap() argument
3788 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3844 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
3849 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
3852 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
3853 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
3855 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
3857 return smb3_collapse_range(file, tcon, off, len); in smb3_fallocate()
3859 return smb3_insert_range(file, tcon, off, len); in smb3_fallocate()
3861 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()
5014 struct dentry *dentry, struct cifs_tcon *tcon, in __cifs_sfu_make_node() argument
5017 struct TCP_Server_Info *server = tcon->ses->server; in __cifs_sfu_make_node()
5046 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, GENERIC_WRITE, in __cifs_sfu_make_node()
5056 io_parms.tcon = tcon; in __cifs_sfu_make_node()
5063 server->ops->close(xid, tcon, &fid); in __cifs_sfu_make_node()
5068 struct dentry *dentry, struct cifs_tcon *tcon, in cifs_sfu_make_node() argument
5074 rc = __cifs_sfu_make_node(xid, inode, dentry, tcon, in cifs_sfu_make_node()
5079 if (tcon->posix_extensions) { in cifs_sfu_make_node()
5082 } else if (tcon->unix_ext) { in cifs_sfu_make_node()
5095 struct dentry *dentry, struct cifs_tcon *tcon, in smb2_make_node() argument
5108 rc = cifs_sfu_make_node(xid, inode, dentry, tcon, in smb2_make_node()
5111 rc = smb2_mknod_reparse(xid, inode, dentry, tcon, in smb2_make_node()