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()
795 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount) in SMB3_request_interfaces() argument
800 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
809 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
842 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
853 .tcon = tcon, in smb3_qfs_tcon()
861 rc = open_cached_dir(xid, tcon, "", cifs_sb, false, &cfid); in smb3_qfs_tcon()
870 SMB3_request_interfaces(xid, tcon, true /* called during mount */); in smb3_qfs_tcon()
872 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
874 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
876 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
878 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_qfs_tcon()
881 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_qfs_tcon()
887 smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb2_qfs_tcon() argument
897 .tcon = tcon, in smb2_qfs_tcon()
910 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
912 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
914 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
918 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
931 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, true, &cfid); in smb2_is_path_accessible()
945 .tcon = tcon, in smb2_is_path_accessible()
962 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_is_path_accessible()
977 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
985 static int smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
993 static int smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
1003 return SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, &data->fi); in smb2_query_file_info()
1092 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1103 rc = smb2_query_info_compound(xid, tcon, path, in smb2_query_eas()
1141 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1147 struct cifs_ses *ses = tcon->ses; in smb2_set_ea()
1172 if (smb3_encryption_required(tcon)) in smb2_set_ea()
1194 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1205 rc = smb2_query_info_compound(xid, tcon, path, in smb2_set_ea()
1239 .tcon = tcon, in smb2_set_ea()
1248 rc = SMB2_open_init(tcon, server, in smb2_set_ea()
1252 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1274 rc = SMB2_set_info_init(tcon, server, in smb2_set_ea()
1281 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
1287 rc = SMB2_close_init(tcon, server, in smb2_set_ea()
1317 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_set_ea()
1331 smb2_clear_stats(struct cifs_tcon *tcon) in smb2_clear_stats() argument
1336 atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0); in smb2_clear_stats()
1337 atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0); in smb2_clear_stats()
1342 smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) in smb2_dump_share_caps() argument
1345 if (tcon->capabilities & SMB2_SHARE_CAP_DFS) in smb2_dump_share_caps()
1347 if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY) in smb2_dump_share_caps()
1349 if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT) in smb2_dump_share_caps()
1351 if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER) in smb2_dump_share_caps()
1353 if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC) in smb2_dump_share_caps()
1355 if (tcon->capabilities == 0) in smb2_dump_share_caps()
1357 if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE) in smb2_dump_share_caps()
1359 if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE) in smb2_dump_share_caps()
1361 if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY) in smb2_dump_share_caps()
1363 if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED) in smb2_dump_share_caps()
1366 seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); in smb2_dump_share_caps()
1367 seq_printf(m, "\n\ttid: 0x%x", tcon->tid); in smb2_dump_share_caps()
1368 if (tcon->perf_sector_size) in smb2_dump_share_caps()
1370 tcon->perf_sector_size); in smb2_dump_share_caps()
1371 seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access); in smb2_dump_share_caps()
1375 smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in smb2_print_stats() argument
1377 atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent; in smb2_print_stats()
1378 atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed; in smb2_print_stats()
1382 * totals (requests sent) since those SMBs are per-session not per tcon in smb2_print_stats()
1385 (long long)(tcon->bytes_read), in smb2_print_stats()
1386 (long long)(tcon->bytes_written)); in smb2_print_stats()
1388 atomic_read(&tcon->num_local_opens), in smb2_print_stats()
1389 atomic_read(&tcon->num_remote_opens)); in smb2_print_stats()
1453 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1456 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1460 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1467 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1503 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1511 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1516 pr_warn_once("Server share %s does not support copy range\n", tcon->tree_name); in SMB2_request_res_key()
1536 struct cifs_tcon *tcon, in smb2_ioctl_query_info() argument
1544 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info()
1592 if (smb3_encryption_required(tcon)) in smb2_ioctl_query_info()
1608 .tcon = tcon, in smb2_ioctl_query_info()
1636 rc = SMB2_open_init(tcon, server, in smb2_ioctl_query_info()
1640 smb2_set_next_command(tcon, &rqst[0]); in smb2_ioctl_query_info()
1652 rc = SMB2_ioctl_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1674 rc = SMB2_set_info_init(tcon, server, &rqst[1], COMPOUND_FID, COMPOUND_FID, in smb2_ioctl_query_info()
1682 rc = SMB2_query_info_init(tcon, server, in smb2_ioctl_query_info()
1697 smb2_set_next_command(tcon, &rqst[1]); in smb2_ioctl_query_info()
1704 rc = SMB2_close_init(tcon, server, in smb2_ioctl_query_info()
1778 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_ioctl_query_info()
1794 struct cifs_tcon *tcon; in smb2_copychunk_range() local
1818 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1821 trgtfile->fid.volatile_fid, tcon->tid, in smb2_copychunk_range()
1822 tcon->ses->Suid, src_off, dest_off, len); in smb2_copychunk_range()
1828 cpu_to_le32(min_t(u64, len, tcon->max_bytes_chunk)); in smb2_copychunk_range()
1833 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1876 trgtfile->fid.volatile_fid, tcon->tid, in smb2_copychunk_range()
1877 tcon->ses->Suid, src_off, dest_off, len); in smb2_copychunk_range()
1899 tcon->max_bytes_chunk) in smb2_copychunk_range()
1900 tcon->max_bytes_chunk = in smb2_copychunk_range()
1921 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1924 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1969 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1994 if (tcon->broken_sparse_sup) in smb2_set_sparse()
1997 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
2001 tcon->broken_sparse_sup = true; in smb2_set_sparse()
2015 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
2030 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
2033 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
2047 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
2050 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
2062 trgtfile->fid.volatile_fid, tcon->tid, in smb2_duplicate_extents()
2063 tcon->ses->Suid, src_off, dest_off, len); in smb2_duplicate_extents()
2066 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2080 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2095 tcon->tid, tcon->ses->Suid, src_off, in smb2_duplicate_extents()
2099 trgtfile->fid.volatile_fid, tcon->tid, in smb2_duplicate_extents()
2100 tcon->ses->Suid, src_off, dest_off, len); in smb2_duplicate_extents()
2105 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2108 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2113 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2123 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2143 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2175 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2237 struct cifs_tcon *tcon; in smb3_notify() local
2271 tcon = cifs_sb_master_tcon(cifs_sb); in smb3_notify()
2273 .tcon = tcon, in smb3_notify()
2286 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2290 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2310 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2333 server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2339 if (smb3_encryption_required(tcon)) in smb2_query_dir_first()
2352 .tcon = tcon, in smb2_query_dir_first()
2361 rc = SMB2_open_init(tcon, server, in smb2_query_dir_first()
2365 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_dir_first()
2375 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2389 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2404 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2407 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2411 atomic_inc(&tcon->num_remote_opens); in smb2_query_dir_first()
2416 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2422 rc = smb2_parse_query_directory(tcon, &rsp_iov[1], resp_buftype[1], in smb2_query_dir_first()
2425 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2426 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2431 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2432 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2442 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_dir_first()
2449 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2453 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2458 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2461 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2530 struct cifs_tcon *tcon; in smb2_is_network_name_deleted() local
2542 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_network_name_deleted()
2543 if (tcon->tid == le32_to_cpu(shdr->Id.SyncId.TreeId)) { in smb2_is_network_name_deleted()
2544 spin_lock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2545 tcon->need_reconnect = true; in smb2_is_network_name_deleted()
2546 spin_unlock(&tcon->tc_lock); in smb2_is_network_name_deleted()
2549 tcon->tree_name); in smb2_is_network_name_deleted()
2560 smb2_oplock_response(struct cifs_tcon *tcon, __u64 persistent_fid, in smb2_oplock_response() argument
2563 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2564 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2567 return SMB2_oplock_break(0, tcon, persistent_fid, volatile_fid, in smb2_oplock_response()
2603 smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst) in smb2_set_next_command() argument
2606 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command()
2624 if (!smb3_encryption_required(tcon)) { in smb2_set_next_command()
2662 bool smb2_should_replay(struct cifs_tcon *tcon, in smb2_should_replay() argument
2669 if (tcon->retry || (*pretries)++ < tcon->ses->server->retrans) { in smb2_should_replay()
2685 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2692 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound()
2718 if (smb3_encryption_required(tcon)) in smb2_query_info_compound()
2734 open_cached_dir(xid, tcon, path, cifs_sb, false, in smb2_query_info_compound()
2741 .tcon = tcon, in smb2_query_info_compound()
2750 rc = SMB2_open_init(tcon, server, in smb2_query_info_compound()
2754 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_info_compound()
2760 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2768 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2779 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_info_compound()
2786 rc = SMB2_close_init(tcon, server, in smb2_query_info_compound()
2812 tcon->need_reconnect = true; in smb2_query_info_compound()
2814 tcon->tree_name); in smb2_query_info_compound()
2834 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_query_info_compound()
2841 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2851 rc = smb2_query_info_compound(xid, tcon, path, in smb2_queryfs()
2872 trace_smb3_qfs_done(xid, tcon->tid, tcon->ses->Suid, tcon->tree_name, rc); in smb2_queryfs()
2878 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2887 if (!tcon->posix_extensions) in smb311_queryfs()
2888 return smb2_queryfs(xid, tcon, path, cifs_sb, buf); in smb311_queryfs()
2891 .tcon = tcon, in smb311_queryfs()
2909 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2912 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2962 struct cifs_tcon *tcon; in smb2_get_dfs_refer() local
2971 * Try to use the IPC tcon, otherwise just use any in smb2_get_dfs_refer()
2973 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2974 if (tcon == NULL) { in smb2_get_dfs_refer()
2976 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2979 if (tcon) { in smb2_get_dfs_refer()
2980 tcon->tc_count++; in smb2_get_dfs_refer()
2981 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
2987 if (tcon == NULL) { in smb2_get_dfs_refer()
2988 cifs_dbg(VFS, "session %p has no tcon available for a dfs referral request\n", in smb2_get_dfs_refer()
3016 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
3043 if (tcon && !tcon->ipc) { in smb2_get_dfs_refer()
3046 tcon->tc_count--; in smb2_get_dfs_refer()
3047 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in smb2_get_dfs_refer()
3050 WARN_ON(tcon->tc_count < 0); in smb2_get_dfs_refer()
3096 struct cifs_tcon *tcon; in get_smb2_acl_by_path() local
3106 tcon = tlink_tcon(tlink); in get_smb2_acl_by_path()
3117 .tcon = tcon, in get_smb2_acl_by_path()
3142 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3161 struct cifs_tcon *tcon; in set_smb2_acl() local
3172 tcon = tlink_tcon(tlink); in set_smb2_acl()
3190 .tcon = tcon, in set_smb2_acl()
3204 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3231 static long smb3_zero_data(struct file *file, struct cifs_tcon *tcon, in smb3_zero_data() argument
3242 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3249 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
3253 struct cifs_ses *ses = tcon->ses; in smb3_zero_range()
3264 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3291 rc = smb3_zero_data(file, tcon, offset, len, xid); in smb3_zero_range()
3300 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3316 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3319 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3324 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
3340 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3357 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3376 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3391 struct cifs_tcon *tcon, in smb3_simple_fallocate_write_range() argument
3403 io_parms.tcon = tcon; in smb3_simple_fallocate_write_range()
3428 struct cifs_tcon *tcon, in smb3_simple_fallocate_range() argument
3440 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3461 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3480 rc = smb3_simple_fallocate_write_range(xid, tcon, in smb3_simple_fallocate_range()
3511 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
3526 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3527 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3532 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3546 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3549 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3604 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3623 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3628 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3629 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3631 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3632 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3638 static long smb3_collapse_range(struct file *file, struct cifs_tcon *tcon, in smb3_collapse_range() argument
3674 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3693 static long smb3_insert_range(struct file *file, struct cifs_tcon *tcon, in smb3_insert_range() argument
3722 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3736 rc = smb3_zero_data(file, tcon, off, len, xid); in smb3_insert_range()
3749 static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) in smb3_llseek() argument
3779 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3792 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3833 static int smb3_fiemap(struct cifs_tcon *tcon, in smb3_fiemap() argument
3852 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3908 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
3913 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
3916 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
3917 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
3919 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
3921 return smb3_collapse_range(file, tcon, off, len); in smb3_fallocate()
3923 return smb3_insert_range(file, tcon, off, len); in smb3_fallocate()
3925 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()
5100 struct dentry *dentry, struct cifs_tcon *tcon, in __cifs_sfu_make_node() argument
5104 struct TCP_Server_Info *server = tcon->ses->server; in __cifs_sfu_make_node()
5170 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, GENERIC_WRITE, in __cifs_sfu_make_node()
5181 io_parms.tcon = tcon; in __cifs_sfu_make_node()
5193 server->ops->close(xid, tcon, &fid); 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()