Lines Matching refs:cfile

994 				struct cifsFileInfo *cfile, struct cifs_open_info_data *data)  in smb2_query_file_info()  argument
996 struct cifs_fid *fid = &cfile->fid; in smb2_query_file_info()
998 if (cfile->symlink_target) { in smb2_query_file_info()
999 data->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in smb2_query_file_info()
1435 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
1437 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid()
1438 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1440 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid()
1441 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid()
1442 cfile->fid.access = fid->access; in smb2_set_fid()
1444 cfile->fid.mid = fid->mid; in smb2_set_fid()
1449 memcpy(cfile->fid.create_guid, fid->create_guid, 16); in smb2_set_fid()
1461 struct cifsFileInfo *cfile) in smb2_close_getattr() argument
1467 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1468 cfile->fid.volatile_fid, &file_inf); in smb2_close_getattr()
1472 inode = d_inode(cfile->dentry); in smb2_close_getattr()
1970 struct cifsFileInfo *cfile, struct inode *inode, __u8 setsparse) in smb2_set_sparse() argument
1997 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1998 cfile->fid.volatile_fid, FSCTL_SET_SPARSE, in smb2_set_sparse()
2016 struct cifsFileInfo *cfile, __u64 size, bool set_alloc) in smb2_set_file_size() argument
2024 inode = d_inode(cfile->dentry); in smb2_set_file_size()
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()
2034 cfile->fid.volatile_fid, cfile->pid, size); in smb2_set_file_size()
2106 struct cifsFileInfo *cfile) in smb2_set_compression() argument
2108 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2109 cfile->fid.volatile_fid); in smb2_set_compression()
2114 struct cifsFileInfo *cfile) in smb3_set_integrity() argument
2123 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2124 cfile->fid.volatile_fid, in smb3_set_integrity()
2144 struct cifsFileInfo *cfile, void __user *ioc_buf) in smb3_enum_snapshots() argument
2175 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2176 cfile->fid.volatile_fid, in smb3_enum_snapshots()
2924 smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in smb2_mand_lock() argument
2929 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
2930 cfile->fid.persistent_fid, cfile->fid.volatile_fid, in smb2_mand_lock()
3234 struct cifsFileInfo *cfile = file->private_data; in smb3_zero_data() local
3242 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_data()
3243 cfile->fid.volatile_fid, FSCTL_SET_ZERO_DATA, in smb3_zero_data()
3256 struct cifsFileInfo *cfile = file->private_data; in smb3_zero_range() local
3264 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3300 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3301 cfile->fid.volatile_fid, cfile->pid, new_size); 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()
3328 struct cifsFileInfo *cfile = file->private_data; in smb3_punch_hole() local
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()
3358 cfile->fid.volatile_fid, FSCTL_SET_ZERO_DATA, in smb3_punch_hole()
3376 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3377 cfile->fid.volatile_fid, cfile->pid, extend_to); in smb3_punch_hole()
3392 struct cifsFileInfo *cfile, in smb3_simple_fallocate_write_range() argument
3401 io_parms.netfid = cfile->fid.netfid; in smb3_simple_fallocate_write_range()
3404 io_parms.persistent_fid = cfile->fid.persistent_fid; in smb3_simple_fallocate_write_range()
3405 io_parms.volatile_fid = cfile->fid.volatile_fid; in smb3_simple_fallocate_write_range()
3429 struct cifsFileInfo *cfile, in smb3_simple_fallocate_range() argument
3440 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3441 cfile->fid.volatile_fid, in smb3_simple_fallocate_range()
3462 cfile, off, len, buf); in smb3_simple_fallocate_range()
3481 cfile, off, l, buf); in smb3_simple_fallocate_range()
3516 struct cifsFileInfo *cfile = file->private_data; in smb3_simple_falloc() local
3523 inode = d_inode(cfile->dentry); in smb3_simple_falloc()
3526 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3531 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, 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()
3550 cfile->fid.volatile_fid, cfile->pid, new_eof); 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()
3631 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3645 struct cifsFileInfo *cfile = file->private_data; in smb3_collapse_range() local
3668 rc = smb2_copychunk_range(xid, cfile, cfile, off + len, in smb3_collapse_range()
3674 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_collapse_range()
3675 cfile->fid.volatile_fid, cfile->pid, new_eof); in smb3_collapse_range()
3698 struct cifsFileInfo *cfile = file->private_data; in smb3_insert_range() local
3722 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_insert_range()
3723 cfile->fid.volatile_fid, cfile->pid, new_eof); in smb3_insert_range()
3731 rc = smb2_copychunk_range(xid, cfile, cfile, off, count, off + len); in smb3_insert_range()
3751 struct cifsFileInfo *wrcfile, *cfile = file->private_data; in smb3_llseek() local
3762 inode = d_inode(cfile->dentry); in smb3_llseek()
3792 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3793 cfile->fid.volatile_fid, in smb3_llseek()
3834 struct cifsFileInfo *cfile, in smb3_fiemap() argument
3843 rc = fiemap_prep(d_inode(cfile->dentry), fei, start, &len, 0); in smb3_fiemap()
3852 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3853 cfile->fid.volatile_fid, in smb3_fiemap()
4174 smb2_dir_needs_close(struct cifsFileInfo *cfile) in smb2_dir_needs_close() argument
4176 return !cfile->invalidHandle; in smb2_dir_needs_close()