Lines Matching full:tcon
474 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_wsize() argument
476 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
489 smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_wsize() argument
491 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
521 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb2_negotiate_rsize() argument
523 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
537 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx) in smb3_negotiate_rsize() argument
539 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
796 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
801 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
810 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
843 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
854 .tcon = tcon, in smb3_qfs_tcon()
862 rc = open_cached_dir(xid, tcon, "", cifs_sb, false, &cfid); in smb3_qfs_tcon()
871 SMB3_request_interfaces(xid, tcon, true /* called during mount */); in smb3_qfs_tcon()
873 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
875 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
877 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
879 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
882 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
888 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
898 .tcon = tcon, in smb2_qfs_tcon()
911 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
913 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
915 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
919 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
932 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, true, &cfid); in smb2_is_path_accessible()
946 .tcon = tcon, in smb2_is_path_accessible()
963 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_is_path_accessible()
978 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
986 static int smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
994 static int smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
1005 return SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, &data->fi); in smb2_query_file_info()
1094 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1105 rc = smb2_query_info_compound(xid, tcon, path, in smb2_query_eas()
1143 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1149 struct cifs_ses *ses = tcon->ses; in smb2_set_ea()
1174 if (smb3_encryption_required(tcon)) in smb2_set_ea()
1196 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1207 rc = smb2_query_info_compound(xid, tcon, path, in smb2_set_ea()
1241 .tcon = tcon, in smb2_set_ea()
1250 rc = SMB2_open_init(tcon, server, in smb2_set_ea()
1254 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1276 rc = SMB2_set_info_init(tcon, server, in smb2_set_ea()
1283 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
1289 rc = SMB2_close_init(tcon, server, in smb2_set_ea()
1319 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_set_ea()
1333 smb2_clear_stats(struct cifs_tcon *tcon) in smb2_clear_stats() argument
1338 atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0); in smb2_clear_stats()
1339 atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0); in smb2_clear_stats()
1344 smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) in smb2_dump_share_caps() argument
1347 if (tcon->capabilities & SMB2_SHARE_CAP_DFS) in smb2_dump_share_caps()
1349 if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY) in smb2_dump_share_caps()
1351 if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT) in smb2_dump_share_caps()
1353 if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER) in smb2_dump_share_caps()
1355 if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC) in smb2_dump_share_caps()
1357 if (tcon->capabilities == 0) in smb2_dump_share_caps()
1359 if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE) in smb2_dump_share_caps()
1361 if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE) in smb2_dump_share_caps()
1363 if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY) in smb2_dump_share_caps()
1365 if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED) in smb2_dump_share_caps()
1368 seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); in smb2_dump_share_caps()
1369 seq_printf(m, "\n\ttid: 0x%x", tcon->tid); in smb2_dump_share_caps()
1370 if (tcon->perf_sector_size) in smb2_dump_share_caps()
1372 tcon->perf_sector_size); in smb2_dump_share_caps()
1373 seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access); in smb2_dump_share_caps()
1377 smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in smb2_print_stats() argument
1379 atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent; in smb2_print_stats()
1380 atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed; in smb2_print_stats()
1384 * totals (requests sent) since those SMBs are per-session not per tcon in smb2_print_stats()
1387 (long long)(tcon->bytes_read), in smb2_print_stats()
1388 (long long)(tcon->bytes_written)); in smb2_print_stats()
1390 atomic_read(&tcon->num_local_opens), in smb2_print_stats()
1391 atomic_read(&tcon->num_remote_opens)); in smb2_print_stats()
1455 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1458 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1462 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1469 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1505 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1513 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1518 pr_warn_once("Server share %s does not support copy range\n", tcon->tree_name); in SMB2_request_res_key()
1538 struct cifs_tcon *tcon, in smb2_ioctl_query_info() argument
1546 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info()
1594 if (smb3_encryption_required(tcon)) in smb2_ioctl_query_info()
1610 .tcon = tcon, in smb2_ioctl_query_info()
1638 rc = SMB2_open_init(tcon, server, in smb2_ioctl_query_info()
1642 smb2_set_next_command(tcon, &rqst[0]); in smb2_ioctl_query_info()
1654 rc = SMB2_ioctl_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1676 rc = SMB2_set_info_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1684 rc = SMB2_query_info_init(tcon, server, in smb2_ioctl_query_info()
1699 smb2_set_next_command(tcon, &rqst[1]); in smb2_ioctl_query_info()
1706 rc = SMB2_close_init(tcon, server, in smb2_ioctl_query_info()
1780 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_ioctl_query_info()
1796 struct cifs_tcon *tcon; in smb2_copychunk_range() local
1820 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1823 trgtfile->fid.volatile_fid, tcon->tid, in smb2_copychunk_range()
1824 tcon->ses->Suid, src_off, dest_off, len); in smb2_copychunk_range()
1830 cpu_to_le32(min_t(u64, len, tcon->max_bytes_chunk)); in smb2_copychunk_range()
1835 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1878 trgtfile->fid.volatile_fid, tcon->tid, in smb2_copychunk_range()
1879 tcon->ses->Suid, src_off, dest_off, len); in smb2_copychunk_range()
1901 tcon->max_bytes_chunk) in smb2_copychunk_range()
1902 tcon->max_bytes_chunk = in smb2_copychunk_range()
1923 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1926 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1971 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1996 if (tcon->broken_sparse_sup) in smb2_set_sparse()
1999 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
2003 tcon->broken_sparse_sup = true; in smb2_set_sparse()
2017 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
2032 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
2035 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
2049 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
2052 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
2064 trgtfile->fid.volatile_fid, tcon->tid, in smb2_duplicate_extents()
2065 tcon->ses->Suid, src_off, dest_off, len); in smb2_duplicate_extents()
2068 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2082 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2097 tcon->tid, tcon->ses->Suid, src_off, in smb2_duplicate_extents()
2101 trgtfile->fid.volatile_fid, tcon->tid, in smb2_duplicate_extents()
2102 tcon->ses->Suid, src_off, dest_off, len); in smb2_duplicate_extents()
2107 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2110 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2115 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2125 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2145 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2177 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2239 struct cifs_tcon *tcon; in smb3_notify() local
2273 tcon = cifs_sb_master_tcon(cifs_sb); in smb3_notify()
2275 .tcon = tcon, in smb3_notify()
2288 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2292 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2312 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2335 server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2341 if (smb3_encryption_required(tcon)) in smb2_query_dir_first()
2354 .tcon = tcon, in smb2_query_dir_first()
2363 rc = SMB2_open_init(tcon, server, in smb2_query_dir_first()
2367 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_dir_first()
2377 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2391 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2406 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2409 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2413 atomic_inc(&tcon->num_remote_opens); in smb2_query_dir_first()
2418 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2424 rc = smb2_parse_query_directory(tcon, &rsp_iov[1], resp_buftype[1], in smb2_query_dir_first()
2427 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2428 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2433 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2434 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2444 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_dir_first()
2451 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2455 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2460 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2463 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2532 struct cifs_tcon *tcon; in smb2_is_network_name_deleted() local
2544 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_network_name_deleted()
2545 if (tcon->tid == le32_to_cpu(shdr->Id.SyncId.TreeId)) { in smb2_is_network_name_deleted()
2546 spin_lock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2547 tcon->need_reconnect = true; in smb2_is_network_name_deleted()
2548 spin_unlock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2551 tcon->tree_name); in smb2_is_network_name_deleted()
2562 smb2_oplock_response(struct cifs_tcon *tcon, __u64 persistent_fid, in smb2_oplock_response() argument
2565 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2566 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2569 return SMB2_oplock_break(0, tcon, persistent_fid, volatile_fid, in smb2_oplock_response()
2605 smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst) in smb2_set_next_command() argument
2608 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command()
2633 bool smb2_should_replay(struct cifs_tcon *tcon, in smb2_should_replay() argument
2640 if (tcon->retry || (*pretries)++ < tcon->ses->server->retrans) { in smb2_should_replay()
2656 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2663 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound()
2689 if (smb3_encryption_required(tcon)) in smb2_query_info_compound()
2705 open_cached_dir(xid, tcon, path, cifs_sb, false, in smb2_query_info_compound()
2712 .tcon = tcon, in smb2_query_info_compound()
2721 rc = SMB2_open_init(tcon, server, in smb2_query_info_compound()
2725 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_info_compound()
2731 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2739 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2750 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_info_compound()
2757 rc = SMB2_close_init(tcon, server, in smb2_query_info_compound()
2783 tcon->need_reconnect = true; in smb2_query_info_compound()
2785 tcon->tree_name); in smb2_query_info_compound()
2805 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_info_compound()
2812 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2822 rc = smb2_query_info_compound(xid, tcon, path, in smb2_queryfs()
2843 trace_smb3_qfs_done(xid, tcon->tid, tcon->ses->Suid, tcon->tree_name, rc); in smb2_queryfs()
2849 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2858 if (!tcon->posix_extensions) in smb311_queryfs()
2859 return smb2_queryfs(xid, tcon, path, cifs_sb, buf); in smb311_queryfs()
2862 .tcon = tcon, in smb311_queryfs()
2880 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2883 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2933 struct cifs_tcon *tcon; in smb2_get_dfs_refer() local
2942 * Try to use the IPC tcon, otherwise just use any in smb2_get_dfs_refer()
2944 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2945 if (tcon == NULL) { in smb2_get_dfs_refer()
2947 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2950 if (tcon) { in smb2_get_dfs_refer()
2951 tcon->tc_count++; in smb2_get_dfs_refer()
2952 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
2958 if (tcon == NULL) { in smb2_get_dfs_refer()
2959 cifs_dbg(VFS, "session %p has no tcon available for a dfs referral request\n", in smb2_get_dfs_refer()
2987 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
3018 if (tcon && !tcon->ipc) { in smb2_get_dfs_refer()
3021 tcon->tc_count--; in smb2_get_dfs_refer()
3022 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
3025 WARN_ON(tcon->tc_count < 0); in smb2_get_dfs_refer()
3071 struct cifs_tcon *tcon; in get_smb2_acl_by_path() local
3081 tcon = tlink_tcon(tlink); in get_smb2_acl_by_path()
3092 .tcon = tcon, in get_smb2_acl_by_path()
3117 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3136 struct cifs_tcon *tcon; in set_smb2_acl() local
3147 tcon = tlink_tcon(tlink); in set_smb2_acl()
3165 .tcon = tcon, in set_smb2_acl()
3179 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3206 static long smb3_zero_data(struct file *file, struct cifs_tcon *tcon, in smb3_zero_data() argument
3217 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3224 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
3228 struct cifs_ses *ses = tcon->ses; in smb3_zero_range()
3239 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3266 rc = smb3_zero_data(file, tcon, offset, len, xid); in smb3_zero_range()
3275 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3291 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3294 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3299 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
3315 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3332 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3351 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3366 struct cifs_tcon *tcon, in smb3_simple_fallocate_write_range() argument
3378 io_parms.tcon = tcon; in smb3_simple_fallocate_write_range()
3403 struct cifs_tcon *tcon, in smb3_simple_fallocate_range() argument
3415 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3436 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3455 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3486 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
3501 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3502 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3507 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3521 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3524 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3579 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3598 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3603 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3604 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3606 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3607 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3613 static long smb3_collapse_range(struct file *file, struct cifs_tcon *tcon, in smb3_collapse_range() argument
3649 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3668 static long smb3_insert_range(struct file *file, struct cifs_tcon *tcon, in smb3_insert_range() argument
3697 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3711 rc = smb3_zero_data(file, tcon, off, len, xid); in smb3_insert_range()
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_collapse_range(file, tcon, off, len); in smb3_fallocate()
3898 return smb3_insert_range(file, tcon, off, len); in smb3_fallocate()
3900 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()
5079 struct dentry *dentry, struct cifs_tcon *tcon, in __cifs_sfu_make_node() argument
5083 struct TCP_Server_Info *server = tcon->ses->server; in __cifs_sfu_make_node()
5150 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, GENERIC_WRITE, in __cifs_sfu_make_node()
5171 io_parms.tcon = tcon; in __cifs_sfu_make_node()
5184 server->ops->close(xid, tcon, &fid); in __cifs_sfu_make_node()
5193 server->ops->unlink(xid, tcon, full_path, cifs_sb, NULL); in __cifs_sfu_make_node()
5201 struct dentry *dentry, struct cifs_tcon *tcon, in cifs_sfu_make_node() argument
5207 rc = __cifs_sfu_make_node(xid, inode, dentry, tcon, in cifs_sfu_make_node()
5212 if (tcon->posix_extensions) { in cifs_sfu_make_node()
5215 } else if (tcon->unix_ext) { in cifs_sfu_make_node()
5228 struct dentry *dentry, struct cifs_tcon *tcon, in smb2_make_node() argument
5241 rc = cifs_sfu_make_node(xid, inode, dentry, tcon, in smb2_make_node()
5244 rc = smb2_mknod_reparse(xid, inode, dentry, tcon, in smb2_make_node()