Lines Matching full:tcon
482 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_wsize() argument
484 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
497 smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_wsize() argument
499 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
529 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_rsize() argument
531 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
545 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_rsize() argument
547 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
804 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
809 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
818 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
851 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
862 .tcon = tcon, in smb3_qfs_tcon()
870 rc = open_cached_dir(xid, tcon, "", cifs_sb, false, &cfid); in smb3_qfs_tcon()
879 SMB3_request_interfaces(xid, tcon, true /* called during mount */); in smb3_qfs_tcon()
881 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
883 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
885 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
887 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
890 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
896 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
906 .tcon = tcon, in smb2_qfs_tcon()
919 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
921 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
923 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
927 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
940 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, true, &cfid); in smb2_is_path_accessible()
954 .tcon = tcon, in smb2_is_path_accessible()
971 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_is_path_accessible()
986 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
994 static int smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
1002 static int smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
1013 return SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, &data->fi); in smb2_query_file_info()
1102 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1113 rc = smb2_query_info_compound(xid, tcon, path, in smb2_query_eas()
1151 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1157 struct cifs_ses *ses = tcon->ses; in smb2_set_ea()
1182 if (smb3_encryption_required(tcon)) in smb2_set_ea()
1204 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1215 rc = smb2_query_info_compound(xid, tcon, path, in smb2_set_ea()
1249 .tcon = tcon, in smb2_set_ea()
1258 rc = SMB2_open_init(tcon, server, in smb2_set_ea()
1262 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1284 rc = SMB2_set_info_init(tcon, server, in smb2_set_ea()
1291 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
1297 rc = SMB2_close_init(tcon, server, in smb2_set_ea()
1327 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_set_ea()
1341 smb2_clear_stats(struct cifs_tcon *tcon) in smb2_clear_stats() argument
1346 atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0); in smb2_clear_stats()
1347 atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0); in smb2_clear_stats()
1352 smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) in smb2_dump_share_caps() argument
1355 if (tcon->capabilities & SMB2_SHARE_CAP_DFS) in smb2_dump_share_caps()
1357 if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY) in smb2_dump_share_caps()
1359 if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT) in smb2_dump_share_caps()
1361 if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER) in smb2_dump_share_caps()
1363 if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC) in smb2_dump_share_caps()
1365 if (tcon->capabilities == 0) in smb2_dump_share_caps()
1367 if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE) in smb2_dump_share_caps()
1369 if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE) in smb2_dump_share_caps()
1371 if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY) in smb2_dump_share_caps()
1373 if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED) in smb2_dump_share_caps()
1376 seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); in smb2_dump_share_caps()
1377 seq_printf(m, "\n\ttid: 0x%x", tcon->tid); in smb2_dump_share_caps()
1378 if (tcon->perf_sector_size) in smb2_dump_share_caps()
1380 tcon->perf_sector_size); in smb2_dump_share_caps()
1381 seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access); in smb2_dump_share_caps()
1385 smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in smb2_print_stats() argument
1387 atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent; in smb2_print_stats()
1388 atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed; in smb2_print_stats()
1392 * totals (requests sent) since those SMBs are per-session not per tcon in smb2_print_stats()
1395 (long long)(tcon->bytes_read), in smb2_print_stats()
1396 (long long)(tcon->bytes_written)); in smb2_print_stats()
1398 atomic_read(&tcon->num_local_opens), in smb2_print_stats()
1399 atomic_read(&tcon->num_remote_opens)); in smb2_print_stats()
1463 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1466 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1470 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1477 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1513 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1521 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1526 pr_warn_once("Server share %s does not support copy range\n", tcon->tree_name); in SMB2_request_res_key()
1546 struct cifs_tcon *tcon, in smb2_ioctl_query_info() argument
1554 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info()
1602 if (smb3_encryption_required(tcon)) in smb2_ioctl_query_info()
1618 .tcon = tcon, in smb2_ioctl_query_info()
1646 rc = SMB2_open_init(tcon, server, in smb2_ioctl_query_info()
1650 smb2_set_next_command(tcon, &rqst[0]); in smb2_ioctl_query_info()
1662 rc = SMB2_ioctl_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1684 rc = SMB2_set_info_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1692 rc = SMB2_query_info_init(tcon, server, in smb2_ioctl_query_info()
1707 smb2_set_next_command(tcon, &rqst[1]); in smb2_ioctl_query_info()
1714 rc = SMB2_close_init(tcon, server, in smb2_ioctl_query_info()
1788 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_ioctl_query_info()
1804 struct cifs_tcon *tcon; in smb2_copychunk_range() local
1828 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1831 trgtfile->fid.volatile_fid, tcon->tid, in smb2_copychunk_range()
1832 tcon->ses->Suid, src_off, dest_off, len); in smb2_copychunk_range()
1838 cpu_to_le32(min_t(u64, len, tcon->max_bytes_chunk)); in smb2_copychunk_range()
1843 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1886 trgtfile->fid.volatile_fid, tcon->tid, in smb2_copychunk_range()
1887 tcon->ses->Suid, src_off, dest_off, len); in smb2_copychunk_range()
1909 tcon->max_bytes_chunk) in smb2_copychunk_range()
1910 tcon->max_bytes_chunk = in smb2_copychunk_range()
1931 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1934 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1979 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
2004 if (tcon->broken_sparse_sup) in smb2_set_sparse()
2007 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
2011 tcon->broken_sparse_sup = true; in smb2_set_sparse()
2025 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
2040 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
2043 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
2057 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
2060 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
2072 trgtfile->fid.volatile_fid, tcon->tid, in smb2_duplicate_extents()
2073 tcon->ses->Suid, src_off, dest_off, len); in smb2_duplicate_extents()
2076 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2090 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2105 tcon->tid, tcon->ses->Suid, src_off, in smb2_duplicate_extents()
2109 trgtfile->fid.volatile_fid, tcon->tid, in smb2_duplicate_extents()
2110 tcon->ses->Suid, src_off, dest_off, len); in smb2_duplicate_extents()
2115 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2118 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2123 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2133 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2153 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2185 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2247 struct cifs_tcon *tcon; in smb3_notify() local
2281 tcon = cifs_sb_master_tcon(cifs_sb); in smb3_notify()
2283 .tcon = tcon, in smb3_notify()
2296 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2300 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2320 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2343 server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2349 if (smb3_encryption_required(tcon)) in smb2_query_dir_first()
2362 .tcon = tcon, in smb2_query_dir_first()
2371 rc = SMB2_open_init(tcon, server, in smb2_query_dir_first()
2375 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_dir_first()
2385 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2399 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2414 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2417 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2421 atomic_inc(&tcon->num_remote_opens); in smb2_query_dir_first()
2426 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2432 rc = smb2_parse_query_directory(tcon, &rsp_iov[1], resp_buftype[1], in smb2_query_dir_first()
2435 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2436 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2441 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2442 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2452 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_dir_first()
2459 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2463 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2468 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2471 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2540 struct cifs_tcon *tcon; in smb2_is_network_name_deleted() local
2552 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_network_name_deleted()
2553 if (tcon->tid == le32_to_cpu(shdr->Id.SyncId.TreeId)) { in smb2_is_network_name_deleted()
2554 spin_lock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2555 tcon->need_reconnect = true; in smb2_is_network_name_deleted()
2556 spin_unlock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2559 tcon->tree_name); in smb2_is_network_name_deleted()
2570 smb2_oplock_response(struct cifs_tcon *tcon, __u64 persistent_fid, in smb2_oplock_response() argument
2573 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2574 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2577 return SMB2_oplock_break(0, tcon, persistent_fid, volatile_fid, in smb2_oplock_response()
2613 smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst) in smb2_set_next_command() argument
2616 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command()
2641 bool smb2_should_replay(struct cifs_tcon *tcon, in smb2_should_replay() argument
2648 if (tcon->retry || (*pretries)++ < tcon->ses->server->retrans) { in smb2_should_replay()
2664 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2671 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound()
2697 if (smb3_encryption_required(tcon)) in smb2_query_info_compound()
2713 open_cached_dir(xid, tcon, path, cifs_sb, false, in smb2_query_info_compound()
2720 .tcon = tcon, in smb2_query_info_compound()
2729 rc = SMB2_open_init(tcon, server, in smb2_query_info_compound()
2733 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_info_compound()
2739 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2747 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2758 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_info_compound()
2765 rc = SMB2_close_init(tcon, server, in smb2_query_info_compound()
2791 tcon->need_reconnect = true; in smb2_query_info_compound()
2793 tcon->tree_name); in smb2_query_info_compound()
2813 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_info_compound()
2820 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2830 rc = smb2_query_info_compound(xid, tcon, path, in smb2_queryfs()
2851 trace_smb3_qfs_done(xid, tcon->tid, tcon->ses->Suid, tcon->tree_name, rc); in smb2_queryfs()
2857 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2866 if (!tcon->posix_extensions) in smb311_queryfs()
2867 return smb2_queryfs(xid, tcon, path, cifs_sb, buf); in smb311_queryfs()
2870 .tcon = tcon, in smb311_queryfs()
2888 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2891 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2941 struct cifs_tcon *tcon; in smb2_get_dfs_refer() local
2950 * Try to use the IPC tcon, otherwise just use any in smb2_get_dfs_refer()
2952 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2953 if (tcon == NULL) { in smb2_get_dfs_refer()
2955 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2958 if (tcon) { in smb2_get_dfs_refer()
2959 tcon->tc_count++; in smb2_get_dfs_refer()
2960 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
2966 if (tcon == NULL) { in smb2_get_dfs_refer()
2967 cifs_dbg(VFS, "session %p has no tcon available for a dfs referral request\n", in smb2_get_dfs_refer()
2995 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
3026 if (tcon && !tcon->ipc) { in smb2_get_dfs_refer()
3029 tcon->tc_count--; in smb2_get_dfs_refer()
3030 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
3033 WARN_ON(tcon->tc_count < 0); in smb2_get_dfs_refer()
3079 struct cifs_tcon *tcon; in get_smb2_acl_by_path() local
3089 tcon = tlink_tcon(tlink); in get_smb2_acl_by_path()
3100 .tcon = tcon, in get_smb2_acl_by_path()
3125 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3144 struct cifs_tcon *tcon; in set_smb2_acl() local
3155 tcon = tlink_tcon(tlink); in set_smb2_acl()
3173 .tcon = tcon, in set_smb2_acl()
3187 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3214 static long smb3_zero_data(struct file *file, struct cifs_tcon *tcon, in smb3_zero_data() argument
3225 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3232 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
3236 struct cifs_ses *ses = tcon->ses; in smb3_zero_range()
3247 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3274 rc = smb3_zero_data(file, tcon, offset, len, xid); in smb3_zero_range()
3283 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3299 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3302 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3307 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
3323 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3340 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3359 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3374 struct cifs_tcon *tcon, in smb3_simple_fallocate_write_range() argument
3386 io_parms.tcon = tcon; in smb3_simple_fallocate_write_range()
3411 struct cifs_tcon *tcon, in smb3_simple_fallocate_range() argument
3423 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3444 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3463 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3494 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
3509 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3510 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3515 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3529 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3532 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3585 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3604 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3609 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3610 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3612 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3613 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3619 static long smb3_collapse_range(struct file *file, struct cifs_tcon *tcon, in smb3_collapse_range() argument
3655 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3674 static long smb3_insert_range(struct file *file, struct cifs_tcon *tcon, in smb3_insert_range() argument
3703 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3717 rc = smb3_zero_data(file, tcon, off, len, xid); in smb3_insert_range()
3730 static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) in smb3_llseek() argument
3760 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3773 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3814 static int smb3_fiemap(struct cifs_tcon *tcon, in smb3_fiemap() argument
3833 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3889 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
3894 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
3897 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
3898 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
3900 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
3902 return smb3_collapse_range(file, tcon, off, len); in smb3_fallocate()
3904 return smb3_insert_range(file, tcon, off, len); in smb3_fallocate()
3906 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()
5085 struct dentry *dentry, struct cifs_tcon *tcon, in __cifs_sfu_make_node() argument
5089 struct TCP_Server_Info *server = tcon->ses->server; in __cifs_sfu_make_node()
5156 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, GENERIC_WRITE, in __cifs_sfu_make_node()
5177 io_parms.tcon = tcon; in __cifs_sfu_make_node()
5190 server->ops->close(xid, tcon, &fid); in __cifs_sfu_make_node()
5199 server->ops->unlink(xid, tcon, full_path, cifs_sb, NULL); in __cifs_sfu_make_node()
5207 struct dentry *dentry, struct cifs_tcon *tcon, in cifs_sfu_make_node() argument
5213 rc = __cifs_sfu_make_node(xid, inode, dentry, tcon, in cifs_sfu_make_node()
5218 if (tcon->posix_extensions) { in cifs_sfu_make_node()
5221 } else if (tcon->unix_ext) { in cifs_sfu_make_node()
5234 struct dentry *dentry, struct cifs_tcon *tcon, in smb2_make_node() argument
5247 rc = cifs_sfu_make_node(xid, inode, dentry, tcon, in smb2_make_node()
5249 } else if (le32_to_cpu(tcon->fsAttrInfo.Attributes) & FILE_SUPPORTS_REPARSE_POINTS) { in smb2_make_node()
5250 rc = smb2_mknod_reparse(xid, inode, dentry, tcon, in smb2_make_node()