Lines Matching full:tcon

342 smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)  in smb2_negotiate_wsize()  argument
344 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
357 smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info) in smb3_negotiate_wsize() argument
359 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
389 smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb_vol *volume_info) in smb2_negotiate_rsize() argument
391 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
405 smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb_vol *volume_info) in smb3_negotiate_rsize() argument
407 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
579 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon) in SMB3_request_interfaces() argument
586 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces()
588 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in SMB3_request_interfaces()
629 SMB2_close(0, cfid->tcon, cfid->fid->persistent_fid, in smb2_close_cached_fid()
671 int open_shroot(unsigned int xid, struct cifs_tcon *tcon, in open_shroot() argument
675 struct cifs_ses *ses = tcon->ses; in open_shroot()
690 mutex_lock(&tcon->crfid.fid_mutex); in open_shroot()
691 if (tcon->crfid.is_valid) { in open_shroot()
693 *cfid = &tcon->crfid; in open_shroot()
694 kref_get(&tcon->crfid.refcount); in open_shroot()
695 mutex_unlock(&tcon->crfid.fid_mutex); in open_shroot()
706 mutex_unlock(&tcon->crfid.fid_mutex); in open_shroot()
708 if (smb3_encryption_required(tcon)) in open_shroot()
714 pfid = tcon->crfid.fid; in open_shroot()
726 oparms.tcon = tcon; in open_shroot()
733 rc = SMB2_open_init(tcon, server, in open_shroot()
737 smb2_set_next_command(tcon, &rqst[0]); in open_shroot()
743 rc = SMB2_query_info_init(tcon, server, in open_shroot()
757 mutex_lock(&tcon->crfid.fid_mutex); in open_shroot()
764 if (tcon->crfid.is_valid) { in open_shroot()
778 memcpy(pfid, tcon->crfid.fid, sizeof(*pfid)); in open_shroot()
779 kref_get(&tcon->crfid.refcount); in open_shroot()
781 mutex_unlock(&tcon->crfid.fid_mutex); in open_shroot()
785 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in open_shroot()
795 tcon->need_reconnect = true; in open_shroot()
797 tcon->treeName); in open_shroot()
802 atomic_inc(&tcon->num_remote_opens); in open_shroot()
811 memcpy(tcon->crfid.fid, pfid, sizeof(struct cifs_fid)); in open_shroot()
812 tcon->crfid.tcon = tcon; in open_shroot()
813 tcon->crfid.is_valid = true; in open_shroot()
814 kref_init(&tcon->crfid.refcount); in open_shroot()
818 kref_get(&tcon->crfid.refcount); in open_shroot()
819 tcon->crfid.has_lease = true; in open_shroot()
834 (char *)&tcon->crfid.file_all_info)) in open_shroot()
835 tcon->crfid.file_all_info_is_valid = true; in open_shroot()
838 mutex_unlock(&tcon->crfid.fid_mutex); in open_shroot()
845 *cfid = &tcon->crfid; in open_shroot()
850 smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, in smb3_qfs_tcon() argument
858 bool no_cached_open = tcon->nohandlecache; in smb3_qfs_tcon()
861 oparms.tcon = tcon; in smb3_qfs_tcon()
872 rc = open_shroot(xid, tcon, cifs_sb, &cfid); in smb3_qfs_tcon()
879 SMB3_request_interfaces(xid, tcon); 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
905 oparms.tcon = tcon; in smb2_qfs_tcon()
917 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
919 SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb2_qfs_tcon()
921 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_qfs_tcon()
925 smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon, in smb2_is_path_accessible() argument
934 if ((*full_path == 0) && tcon->crfid.is_valid) in smb2_is_path_accessible()
941 oparms.tcon = tcon; in smb2_is_path_accessible()
955 rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb2_is_path_accessible()
961 smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, in smb2_get_srv_inum() argument
970 smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_file_info() argument
981 rc = SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, in smb2_query_file_info()
1074 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_eas() argument
1090 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_query_eas()
1130 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_ea() argument
1135 struct cifs_ses *ses = tcon->ses; in smb2_set_ea()
1156 if (smb3_encryption_required(tcon)) in smb2_set_ea()
1172 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1183 rc = smb2_query_info_compound(xid, tcon, utf16_path, in smb2_set_ea()
1218 oparms.tcon = tcon; in smb2_set_ea()
1225 rc = SMB2_open_init(tcon, server, in smb2_set_ea()
1229 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1252 rc = SMB2_set_info_init(tcon, server, in smb2_set_ea()
1257 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
1265 rc = SMB2_close_init(tcon, server, in smb2_set_ea()
1294 smb2_clear_stats(struct cifs_tcon *tcon) in smb2_clear_stats() argument
1299 atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0); in smb2_clear_stats()
1300 atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0); in smb2_clear_stats()
1305 smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) in smb2_dump_share_caps() argument
1308 if (tcon->capabilities & SMB2_SHARE_CAP_DFS) in smb2_dump_share_caps()
1310 if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY) in smb2_dump_share_caps()
1312 if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT) in smb2_dump_share_caps()
1314 if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER) in smb2_dump_share_caps()
1316 if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC) in smb2_dump_share_caps()
1318 if (tcon->capabilities == 0) in smb2_dump_share_caps()
1320 if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE) in smb2_dump_share_caps()
1322 if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE) in smb2_dump_share_caps()
1324 if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY) in smb2_dump_share_caps()
1326 if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED) in smb2_dump_share_caps()
1329 seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); in smb2_dump_share_caps()
1330 seq_printf(m, "\n\ttid: 0x%x", tcon->tid); in smb2_dump_share_caps()
1331 if (tcon->perf_sector_size) in smb2_dump_share_caps()
1333 tcon->perf_sector_size); in smb2_dump_share_caps()
1334 seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access); in smb2_dump_share_caps()
1338 smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon) in smb2_print_stats() argument
1340 atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent; in smb2_print_stats()
1341 atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed; in smb2_print_stats()
1345 * totals (requests sent) since those SMBs are per-session not per tcon in smb2_print_stats()
1348 (long long)(tcon->bytes_read), in smb2_print_stats()
1349 (long long)(tcon->bytes_written)); in smb2_print_stats()
1351 atomic_read(&tcon->num_local_opens), in smb2_print_stats()
1352 atomic_read(&tcon->num_remote_opens)); in smb2_print_stats()
1416 smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_file() argument
1419 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
1423 smb2_close_getattr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_getattr() argument
1430 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1462 SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon, in SMB2_request_res_key() argument
1470 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_request_res_key()
1503 struct cifs_tcon *tcon, in smb2_ioctl_query_info() argument
1511 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info()
1550 if (smb3_encryption_required(tcon)) in smb2_ioctl_query_info()
1565 oparms.tcon = tcon; in smb2_ioctl_query_info()
1592 rc = SMB2_open_init(tcon, server, in smb2_ioctl_query_info()
1596 smb2_set_next_command(tcon, &rqst[0]); in smb2_ioctl_query_info()
1607 rc = SMB2_ioctl_init(tcon, server, in smb2_ioctl_query_info()
1627 rc = SMB2_set_info_init(tcon, server, in smb2_ioctl_query_info()
1638 rc = SMB2_query_info_init(tcon, server, in smb2_ioctl_query_info()
1652 smb2_set_next_command(tcon, &rqst[1]); in smb2_ioctl_query_info()
1659 rc = SMB2_close_init(tcon, server, in smb2_ioctl_query_info()
1736 struct cifs_tcon *tcon; in smb2_copychunk_range() local
1761 tcon = tlink_tcon(trgtfile->tlink); in smb2_copychunk_range()
1767 cpu_to_le32(min_t(u32, len, tcon->max_bytes_chunk)); in smb2_copychunk_range()
1770 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_copychunk_range()
1834 tcon->max_bytes_chunk) in smb2_copychunk_range()
1835 tcon->max_bytes_chunk = in smb2_copychunk_range()
1856 smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon, in smb2_flush_file() argument
1859 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
1904 static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_sparse() argument
1929 if (tcon->broken_sparse_sup) in smb2_set_sparse()
1932 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1937 tcon->broken_sparse_sup = true; in smb2_set_sparse()
1951 smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_file_size() argument
1967 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
1970 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
1983 struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink); in smb2_duplicate_extents() local
1986 if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) & in smb2_duplicate_extents()
1998 rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false); in smb2_duplicate_extents()
2002 rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid, in smb2_duplicate_extents()
2019 smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_compression() argument
2022 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2027 smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon, in smb3_set_integrity() argument
2037 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2058 smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, in smb3_enum_snapshots() argument
2090 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2152 struct cifs_tcon *tcon; in smb3_notify() local
2175 tcon = cifs_sb_master_tcon(cifs_sb); in smb3_notify()
2176 oparms.tcon = tcon; in smb3_notify()
2188 rc = SMB2_change_notify(xid, tcon, fid.persistent_fid, fid.volatile_fid, in smb3_notify()
2191 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb3_notify()
2202 smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_first() argument
2218 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2224 if (smb3_encryption_required(tcon)) in smb2_query_dir_first()
2236 oparms.tcon = tcon; in smb2_query_dir_first()
2243 rc = SMB2_open_init(tcon, server, in smb2_query_dir_first()
2247 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_dir_first()
2257 rc = SMB2_query_directory_init(xid, tcon, server, in smb2_query_dir_first()
2266 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2281 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_query_dir_first()
2284 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2288 atomic_inc(&tcon->num_remote_opens); in smb2_query_dir_first()
2293 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2299 rc = smb2_parse_query_directory(tcon, &rsp_iov[1], resp_buftype[1], in smb2_query_dir_first()
2302 trace_smb3_query_dir_err(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2303 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2308 trace_smb3_query_dir_done(xid, fid->persistent_fid, tcon->tid, in smb2_query_dir_first()
2309 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2321 smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_dir_next() argument
2325 return SMB2_query_directory(xid, tcon, fid->persistent_fid, in smb2_query_dir_next()
2330 smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon, in smb2_close_dir() argument
2333 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_dir()
2387 smb2_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid, in smb2_oplock_response() argument
2390 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2391 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2394 return SMB2_oplock_break(0, tcon, fid->persistent_fid, in smb2_oplock_response()
2415 smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst) in smb2_set_next_command() argument
2418 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command()
2436 if (!smb3_encryption_required(tcon)) { in smb2_set_next_command()
2476 smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_info_compound() argument
2482 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound()
2496 if (smb3_encryption_required(tcon)) in smb2_query_info_compound()
2507 oparms.tcon = tcon; in smb2_query_info_compound()
2514 rc = SMB2_open_init(tcon, server, in smb2_query_info_compound()
2518 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_info_compound()
2524 rc = SMB2_query_info_init(tcon, server, in smb2_query_info_compound()
2531 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_info_compound()
2538 rc = SMB2_close_init(tcon, server, in smb2_query_info_compound()
2550 tcon->need_reconnect = true; in smb2_query_info_compound()
2552 tcon->treeName); in smb2_query_info_compound()
2569 smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb2_queryfs() argument
2580 rc = smb2_query_info_compound(xid, tcon, &utf16_path, in smb2_queryfs()
2606 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon, in smb311_queryfs() argument
2615 if (!tcon->posix_extensions) in smb311_queryfs()
2616 return smb2_queryfs(xid, tcon, cifs_sb, buf); in smb311_queryfs()
2618 oparms.tcon = tcon; in smb311_queryfs()
2630 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid, in smb311_queryfs()
2633 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in smb311_queryfs()
2683 struct cifs_tcon *tcon; in smb2_get_dfs_refer() local
2691 * Try to use the IPC tcon, otherwise just use any in smb2_get_dfs_refer()
2693 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2694 if (tcon == NULL) { in smb2_get_dfs_refer()
2696 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2699 if (tcon) in smb2_get_dfs_refer()
2700 tcon->tc_count++; in smb2_get_dfs_refer()
2704 if (tcon == NULL) { in smb2_get_dfs_refer()
2705 cifs_dbg(VFS, "session %p has no tcon available for a dfs referral request\n", in smb2_get_dfs_refer()
2733 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb2_get_dfs_refer()
2756 if (tcon && !tcon->ipc) { in smb2_get_dfs_refer()
2759 tcon->tc_count--; in smb2_get_dfs_refer()
2865 smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_symlink() argument
2877 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_symlink()
2899 if (smb3_encryption_required(tcon)) in smb2_query_symlink()
2916 oparms.tcon = tcon; in smb2_query_symlink()
2923 rc = SMB2_open_init(tcon, server, in smb2_query_symlink()
2927 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_symlink()
2935 rc = SMB2_ioctl_init(tcon, server, in smb2_query_symlink()
2945 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_symlink()
2954 rc = SMB2_close_init(tcon, server, in smb2_query_symlink()
2961 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_symlink()
3054 smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_reparse_tag() argument
3063 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_reparse_tag()
3077 if (smb3_encryption_required(tcon)) in smb2_query_reparse_tag()
3097 oparms.tcon = tcon; in smb2_query_reparse_tag()
3104 rc = SMB2_open_init(tcon, server, in smb2_query_reparse_tag()
3108 smb2_set_next_command(tcon, &rqst[0]); in smb2_query_reparse_tag()
3116 rc = SMB2_ioctl_init(tcon, server, in smb2_query_reparse_tag()
3126 smb2_set_next_command(tcon, &rqst[1]); in smb2_query_reparse_tag()
3135 rc = SMB2_close_init(tcon, server, in smb2_query_reparse_tag()
3142 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_reparse_tag()
3216 struct cifs_tcon *tcon; in get_smb2_acl_by_path() local
3226 tcon = tlink_tcon(tlink); in get_smb2_acl_by_path()
3236 oparms.tcon = tcon; in get_smb2_acl_by_path()
3254 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in get_smb2_acl_by_path()
3273 struct cifs_tcon *tcon; in set_smb2_acl() local
3284 tcon = tlink_tcon(tlink); in set_smb2_acl()
3299 oparms.tcon = tcon; in set_smb2_acl()
3313 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in set_smb2_acl()
3340 static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon, in smb3_zero_range() argument
3343 struct cifs_ses *ses = tcon->ses; in smb3_zero_range()
3357 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3371 tcon->tid, ses->Suid, offset, len, rc); in smb3_zero_range()
3381 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3394 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3401 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3404 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3409 static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, in smb3_punch_hole() argument
3425 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3442 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3451 static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, in smb3_simple_falloc() argument
3466 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3467 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3472 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3486 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3489 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3525 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3530 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3531 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3533 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3534 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3540 static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) in smb3_llseek() argument
3570 smb2_flush_file(xid, tcon, &wrcfile->fid); in smb3_llseek()
3583 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3624 static int smb3_fiemap(struct cifs_tcon *tcon, in smb3_fiemap() argument
3643 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3699 static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, in smb3_fallocate() argument
3704 return smb3_punch_hole(file, tcon, off, len); in smb3_fallocate()
3707 return smb3_zero_range(file, tcon, off, len, true); in smb3_fallocate()
3708 return smb3_zero_range(file, tcon, off, len, false); in smb3_fallocate()
3710 return smb3_simple_falloc(file, tcon, off, len, true); in smb3_fallocate()
3712 return smb3_simple_falloc(file, tcon, off, len, false); in smb3_fallocate()
4844 struct dentry *dentry, struct cifs_tcon *tcon, in smb2_make_node() argument
4884 oparms.tcon = tcon; in smb2_make_node()
4894 if (tcon->ses->server->oplocks) in smb2_make_node()
4898 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in smb2_make_node()
4909 io_parms.tcon = tcon; in smb2_make_node()
4918 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
4924 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
4927 tcon->ses->server->ops->close(xid, tcon, &fid); in smb2_make_node()