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()
532 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_rsize() argument
534 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
548 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_rsize() argument
550 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
819 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
824 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
833 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
866 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
877 .tcon = tcon, in smb3_qfs_tcon()
885 rc = open_cached_dir(xid, tcon, "", cifs_sb, false, &cfid); in smb3_qfs_tcon()
894 SMB3_request_interfaces(xid, tcon, true /* called during mount */); in smb3_qfs_tcon()
896 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
898 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
900 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
902 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
905 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
911 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
921 .tcon = tcon, in smb2_qfs_tcon()
934 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
936 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
938 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
942 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
955 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, true, &cfid); in smb2_is_path_accessible()
969 .tcon = tcon, in smb2_is_path_accessible()
986 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_is_path_accessible()
1001 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
1009 static int smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
1017 static int smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
1028 return SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, &data->fi); in smb2_query_file_info()
1117 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1128 rc = smb2_query_info_compound(xid, tcon, path, in smb2_query_eas()
1166 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1172 struct cifs_ses *ses = tcon->ses; in smb2_set_ea()
1197 if (smb3_encryption_required(tcon)) in smb2_set_ea()
1219 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1230 rc = smb2_query_info_compound(xid, tcon, path, in smb2_set_ea()
1264 .tcon = tcon, in smb2_set_ea()
1273 rc = SMB2_open_init(tcon, server, in smb2_set_ea()
1277 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1299 rc = SMB2_set_info_init(tcon, server, in smb2_set_ea()
1306 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
1312 rc = SMB2_close_init(tcon, server, in smb2_set_ea()
1342 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_set_ea()
1356 smb2_clear_stats(struct cifs_tcon *tcon) in smb2_clear_stats() argument
1361 atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0); in smb2_clear_stats()
1362 atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0); in smb2_clear_stats()
1367 smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) in smb2_dump_share_caps() argument
1370 if (tcon->capabilities & SMB2_SHARE_CAP_DFS) in smb2_dump_share_caps()
1372 if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY) in smb2_dump_share_caps()
1374 if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT) in smb2_dump_share_caps()
1376 if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER) in smb2_dump_share_caps()
1378 if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC) in smb2_dump_share_caps()
1380 if (tcon->capabilities == 0) in smb2_dump_share_caps()
1382 if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE) in smb2_dump_share_caps()
1384 if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE) in smb2_dump_share_caps()
1386 if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY) in smb2_dump_share_caps()
1388 if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED) in smb2_dump_share_caps()
1391 seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); in smb2_dump_share_caps()
1392 seq_printf(m, "\n\ttid: 0x%x", tcon->tid); in smb2_dump_share_caps()
1393 if (tcon->perf_sector_size) in smb2_dump_share_caps()
1395 tcon->perf_sector_size); in smb2_dump_share_caps()
1396 seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access); in smb2_dump_share_caps()
1400 smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in smb2_print_stats() argument
1402 atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent; in smb2_print_stats()
1403 atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed; in smb2_print_stats()
1407 * totals (requests sent) since those SMBs are per-session not per tcon in smb2_print_stats()
1410 (long long)(tcon->bytes_read), in smb2_print_stats()
1411 (long long)(tcon->bytes_written)); in smb2_print_stats()
1413 atomic_read(&tcon->num_local_opens), in smb2_print_stats()
1414 atomic_read(&tcon->num_remote_opens)); in smb2_print_stats()
1478 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1481 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1485 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1492 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1528 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1536 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1541 pr_warn_once("Server share %s does not support copy range\n", tcon->tree_name); in SMB2_request_res_key()
1561 struct cifs_tcon *tcon, in smb2_ioctl_query_info() argument
1569 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info()
1617 if (smb3_encryption_required(tcon)) in smb2_ioctl_query_info()
1633 .tcon = tcon, in smb2_ioctl_query_info()
1661 rc = SMB2_open_init(tcon, server, in smb2_ioctl_query_info()
1665 smb2_set_next_command(tcon, &rqst[0]); in smb2_ioctl_query_info()
1677 rc = SMB2_ioctl_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1699 rc = SMB2_set_info_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1707 rc = SMB2_query_info_init(tcon, server, in smb2_ioctl_query_info()
1722 smb2_set_next_command(tcon, &rqst[1]); in smb2_ioctl_query_info()
1729 rc = SMB2_close_init(tcon, server, in smb2_ioctl_query_info()
1803 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_ioctl_query_info()
1819 struct cifs_tcon *tcon; in smb2_copychunk_range() local
1843 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1846 trgtfile->fid.volatile_fid, tcon->tid, in smb2_copychunk_range()
1847 tcon->ses->Suid, src_off, dest_off, len); in smb2_copychunk_range()
1853 cpu_to_le32(min_t(u64, len, tcon->max_bytes_chunk)); in smb2_copychunk_range()
1858 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1901 trgtfile->fid.volatile_fid, tcon->tid, in smb2_copychunk_range()
1902 tcon->ses->Suid, src_off, dest_off, len); in smb2_copychunk_range()
1924 tcon->max_bytes_chunk) in smb2_copychunk_range()
1925 tcon->max_bytes_chunk = in smb2_copychunk_range()
1946 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1949 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1994 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
2019 if (tcon->broken_sparse_sup) in smb2_set_sparse()
2022 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
2026 tcon->broken_sparse_sup = true; in smb2_set_sparse()
2040 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
2055 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
2058 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
2072 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
2075 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
2087 trgtfile->fid.volatile_fid, tcon->tid, in smb2_duplicate_extents()
2088 tcon->ses->Suid, src_off, dest_off, len); in smb2_duplicate_extents()
2091 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2105 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2120 tcon->tid, tcon->ses->Suid, src_off, in smb2_duplicate_extents()
2124 trgtfile->fid.volatile_fid, tcon->tid, in smb2_duplicate_extents()
2125 tcon->ses->Suid, src_off, dest_off, len); in smb2_duplicate_extents()
2130 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2133 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2138 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2148 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2168 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2200 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2262 struct cifs_tcon *tcon; in smb3_notify() local
2296 tcon = cifs_sb_master_tcon(cifs_sb); in smb3_notify()
2298 .tcon = tcon, in smb3_notify()
2311 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2315 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2335 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2358 server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2364 if (smb3_encryption_required(tcon)) in smb2_query_dir_first()
2377 .tcon = tcon, in smb2_query_dir_first()
2386 rc = SMB2_open_init(tcon, server, in smb2_query_dir_first()
2390 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_dir_first()
2400 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2414 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2429 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2432 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2436 atomic_inc(&tcon->num_remote_opens); in smb2_query_dir_first()
2441 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2447 rc = smb2_parse_query_directory(tcon, &rsp_iov[1], resp_buftype[1], in smb2_query_dir_first()
2450 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2451 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2456 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2457 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2467 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_dir_first()
2474 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2478 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2483 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2486 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2555 struct cifs_tcon *tcon; in smb2_is_network_name_deleted() local
2567 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_network_name_deleted()
2568 if (tcon->tid == le32_to_cpu(shdr->Id.SyncId.TreeId)) { in smb2_is_network_name_deleted()
2569 spin_lock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2570 tcon->need_reconnect = true; in smb2_is_network_name_deleted()
2571 spin_unlock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2574 tcon->tree_name); in smb2_is_network_name_deleted()
2585 smb2_oplock_response(struct cifs_tcon *tcon, __u64 persistent_fid, in smb2_oplock_response() argument
2588 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2589 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2592 return SMB2_oplock_break(0, tcon, persistent_fid, volatile_fid, in smb2_oplock_response()
2628 smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst) in smb2_set_next_command() argument
2631 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command()
2656 bool smb2_should_replay(struct cifs_tcon *tcon, in smb2_should_replay() argument
2663 if (tcon->retry || (*pretries)++ < tcon->ses->server->retrans) { in smb2_should_replay()
2679 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2686 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound()
2712 if (smb3_encryption_required(tcon)) in smb2_query_info_compound()
2728 open_cached_dir(xid, tcon, path, cifs_sb, false, in smb2_query_info_compound()
2735 .tcon = tcon, in smb2_query_info_compound()
2744 rc = SMB2_open_init(tcon, server, in smb2_query_info_compound()
2748 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_info_compound()
2754 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2762 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2773 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_info_compound()
2780 rc = SMB2_close_init(tcon, server, in smb2_query_info_compound()
2806 tcon->need_reconnect = true; in smb2_query_info_compound()
2808 tcon->tree_name); in smb2_query_info_compound()
2828 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_info_compound()
2835 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2845 rc = smb2_query_info_compound(xid, tcon, path, in smb2_queryfs()
2866 trace_smb3_qfs_done(xid, tcon->tid, tcon->ses->Suid, tcon->tree_name, rc); in smb2_queryfs()
2872 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2881 if (!tcon->posix_extensions) in smb311_queryfs()
2882 return smb2_queryfs(xid, tcon, path, cifs_sb, buf); in smb311_queryfs()
2885 .tcon = tcon, in smb311_queryfs()
2903 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2906 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2956 struct cifs_tcon *tcon; in smb2_get_dfs_refer() local
2965 * Try to use the IPC tcon, otherwise just use any in smb2_get_dfs_refer()
2967 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2968 if (tcon == NULL) { in smb2_get_dfs_refer()
2970 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2973 if (tcon) { in smb2_get_dfs_refer()
2974 tcon->tc_count++; in smb2_get_dfs_refer()
2975 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
2981 if (tcon == NULL) { in smb2_get_dfs_refer()
2982 cifs_dbg(VFS, "session %p has no tcon available for a dfs referral request\n", in smb2_get_dfs_refer()
3010 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
3041 if (tcon && !tcon->ipc) { in smb2_get_dfs_refer()
3044 tcon->tc_count--; in smb2_get_dfs_refer()
3045 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
3048 WARN_ON(tcon->tc_count < 0); in smb2_get_dfs_refer()
3094 struct cifs_tcon *tcon; in get_smb2_acl_by_path() local
3104 tcon = tlink_tcon(tlink); in get_smb2_acl_by_path()
3115 .tcon = tcon, in get_smb2_acl_by_path()
3140 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3159 struct cifs_tcon *tcon; in set_smb2_acl() local
3170 tcon = tlink_tcon(tlink); in set_smb2_acl()
3188 .tcon = tcon, in set_smb2_acl()
3202 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3229 static long smb3_zero_data(struct file *file, struct cifs_tcon *tcon, in smb3_zero_data() argument
3240 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3247 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
3251 struct cifs_ses *ses = tcon->ses; in smb3_zero_range()
3262 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3289 rc = smb3_zero_data(file, tcon, offset, len, xid); in smb3_zero_range()
3298 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3314 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3317 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3322 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
3338 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3355 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3374 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3389 struct cifs_tcon *tcon, in smb3_simple_fallocate_write_range() argument
3401 io_parms.tcon = tcon; in smb3_simple_fallocate_write_range()
3426 struct cifs_tcon *tcon, in smb3_simple_fallocate_range() argument
3438 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3459 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3478 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3509 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
3524 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3525 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3530 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3544 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3547 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3600 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3619 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3624 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3625 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3627 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3628 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3634 static long smb3_collapse_range(struct file *file, struct cifs_tcon *tcon, in smb3_collapse_range() argument
3670 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3689 static long smb3_insert_range(struct file *file, struct cifs_tcon *tcon, in smb3_insert_range() argument
3718 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3732 rc = smb3_zero_data(file, tcon, off, len, xid); in smb3_insert_range()
3745 static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) in smb3_llseek() argument
3775 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3788 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3829 static int smb3_fiemap(struct cifs_tcon *tcon, in smb3_fiemap() argument
3848 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3904 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
3909 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
3912 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
3913 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
3915 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
3917 return smb3_collapse_range(file, tcon, off, len); in smb3_fallocate()
3919 return smb3_insert_range(file, tcon, off, len); in smb3_fallocate()
3921 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()
5108 struct dentry *dentry, struct cifs_tcon *tcon, in __cifs_sfu_make_node() argument
5112 struct TCP_Server_Info *server = tcon->ses->server; in __cifs_sfu_make_node()
5179 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, GENERIC_WRITE, in __cifs_sfu_make_node()
5200 io_parms.tcon = tcon; in __cifs_sfu_make_node()
5213 server->ops->close(xid, tcon, &fid); in __cifs_sfu_make_node()
5222 server->ops->unlink(xid, tcon, full_path, cifs_sb, NULL); in __cifs_sfu_make_node()
5230 struct dentry *dentry, struct cifs_tcon *tcon, in cifs_sfu_make_node() argument
5236 rc = __cifs_sfu_make_node(xid, inode, dentry, tcon, in cifs_sfu_make_node()
5241 if (tcon->posix_extensions) { in cifs_sfu_make_node()
5244 } else if (tcon->unix_ext) { in cifs_sfu_make_node()
5257 struct dentry *dentry, struct cifs_tcon *tcon, in smb2_make_node() argument
5270 rc = cifs_sfu_make_node(xid, inode, dentry, tcon, in smb2_make_node()
5272 } else if (CIFS_REPARSE_SUPPORT(tcon)) { in smb2_make_node()
5273 rc = mknod_reparse(xid, inode, dentry, tcon, in smb2_make_node()