Lines Matching refs:cfile
1015 struct cifsFileInfo *cfile, struct cifs_open_info_data *data) in smb2_query_file_info() argument
1017 struct cifs_fid *fid = &cfile->fid; in smb2_query_file_info()
1019 if (cfile->symlink_target) { in smb2_query_file_info()
1020 data->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in smb2_query_file_info()
1457 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
1459 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid()
1460 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1462 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid()
1463 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid()
1464 cfile->fid.access = fid->access; in smb2_set_fid()
1466 cfile->fid.mid = fid->mid; in smb2_set_fid()
1471 memcpy(cfile->fid.create_guid, fid->create_guid, 16); in smb2_set_fid()
1483 struct cifsFileInfo *cfile) in smb2_close_getattr() argument
1489 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1490 cfile->fid.volatile_fid, &file_inf); in smb2_close_getattr()
1494 inode = d_inode(cfile->dentry); in smb2_close_getattr()
2078 struct cifsFileInfo *cfile, struct inode *inode, __u8 setsparse) in smb2_set_sparse() argument
2105 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
2106 cfile->fid.volatile_fid, FSCTL_SET_SPARSE, in smb2_set_sparse()
2124 struct cifsFileInfo *cfile, __u64 size, bool set_alloc) in smb2_set_file_size() argument
2132 inode = d_inode(cfile->dentry); in smb2_set_file_size()
2138 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
2141 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
2142 cfile->fid.volatile_fid, cfile->pid, size); in smb2_set_file_size()
2214 struct cifsFileInfo *cfile) in smb2_set_compression() argument
2216 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2217 cfile->fid.volatile_fid); in smb2_set_compression()
2222 struct cifsFileInfo *cfile) in smb3_set_integrity() argument
2231 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2232 cfile->fid.volatile_fid, in smb3_set_integrity()
2252 struct cifsFileInfo *cfile, void __user *ioc_buf) in smb3_enum_snapshots() argument
2283 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2284 cfile->fid.volatile_fid, in smb3_enum_snapshots()
3024 smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in smb2_mand_lock() argument
3029 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
3030 cfile->fid.persistent_fid, cfile->fid.volatile_fid, in smb2_mand_lock()
3338 struct cifsFileInfo *cfile = file->private_data; in smb3_zero_data() local
3346 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3347 cfile->fid.volatile_fid, FSCTL_SET_ZERO_DATA, in smb3_zero_data()
3360 struct cifsFileInfo *cfile = file->private_data; in smb3_zero_range() local
3368 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3404 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3405 cfile->fid.volatile_fid, cfile->pid, new_size); in smb3_zero_range()
3419 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3422 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3431 struct cifsFileInfo *cfile = file->private_data; in smb3_punch_hole() local
3442 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3460 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3461 cfile->fid.volatile_fid, FSCTL_SET_ZERO_DATA, in smb3_punch_hole()
3479 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3480 cfile->fid.volatile_fid, cfile->pid, extend_to); in smb3_punch_hole()
3494 struct cifsFileInfo *cfile, in smb3_simple_fallocate_write_range() argument
3503 io_parms.netfid = cfile->fid.netfid; in smb3_simple_fallocate_write_range()
3506 io_parms.persistent_fid = cfile->fid.persistent_fid; in smb3_simple_fallocate_write_range()
3507 io_parms.volatile_fid = cfile->fid.volatile_fid; in smb3_simple_fallocate_write_range()
3531 struct cifsFileInfo *cfile, in smb3_simple_fallocate_range() argument
3542 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3543 cfile->fid.volatile_fid, in smb3_simple_fallocate_range()
3564 cfile, off, len, buf); in smb3_simple_fallocate_range()
3583 cfile, off, l, buf); in smb3_simple_fallocate_range()
3618 struct cifsFileInfo *cfile = file->private_data; in smb3_simple_falloc() local
3625 inode = d_inode(cfile->dentry); in smb3_simple_falloc()
3628 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3633 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, in smb3_simple_falloc()
3648 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3651 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3652 cfile->fid.volatile_fid, cfile->pid, new_eof); in smb3_simple_falloc()
3704 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3723 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3728 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3731 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3745 struct cifsFileInfo *cfile = file->private_data; in smb3_collapse_range() local
3767 rc = smb2_copychunk_range(xid, cfile, cfile, off + len, in smb3_collapse_range()
3773 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3774 cfile->fid.volatile_fid, cfile->pid, new_eof); in smb3_collapse_range()
3796 struct cifsFileInfo *cfile = file->private_data; in smb3_insert_range() local
3819 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3820 cfile->fid.volatile_fid, cfile->pid, new_eof); in smb3_insert_range()
3828 rc = smb2_copychunk_range(xid, cfile, cfile, off, count, off + len); in smb3_insert_range()
3847 struct cifsFileInfo *wrcfile, *cfile = file->private_data; in smb3_llseek() local
3858 inode = d_inode(cfile->dentry); in smb3_llseek()
3888 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3889 cfile->fid.volatile_fid, in smb3_llseek()
3930 struct cifsFileInfo *cfile, in smb3_fiemap() argument
3939 rc = fiemap_prep(d_inode(cfile->dentry), fei, start, &len, 0); in smb3_fiemap()
3948 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3949 cfile->fid.volatile_fid, in smb3_fiemap()
4273 smb2_dir_needs_close(struct cifsFileInfo *cfile) in smb2_dir_needs_close() argument
4275 return !cfile->invalidHandle; in smb2_dir_needs_close()