Lines Matching refs:cfile

1404 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock)  in smb2_set_fid()  argument
1406 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid()
1407 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1409 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid()
1410 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid()
1411 cfile->fid.access = fid->access; in smb2_set_fid()
1413 cfile->fid.mid = fid->mid; in smb2_set_fid()
1418 memcpy(cfile->fid.create_guid, fid->create_guid, 16); in smb2_set_fid()
1430 struct cifsFileInfo *cfile) in smb2_close_getattr() argument
1436 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr()
1437 cfile->fid.volatile_fid, &file_inf); in smb2_close_getattr()
1441 inode = d_inode(cfile->dentry); in smb2_close_getattr()
1925 struct cifsFileInfo *cfile, struct inode *inode, __u8 setsparse) in smb2_set_sparse() argument
1952 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1953 cfile->fid.volatile_fid, FSCTL_SET_SPARSE, in smb2_set_sparse()
1971 struct cifsFileInfo *cfile, __u64 size, bool set_alloc) in smb2_set_file_size() argument
1980 inode = d_inode(cfile->dentry); in smb2_set_file_size()
1986 smb2_set_sparse(xid, tcon, cfile, inode, set_sparse); in smb2_set_file_size()
1989 return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb2_set_file_size()
1990 cfile->fid.volatile_fid, cfile->pid, &eof); in smb2_set_file_size()
2050 struct cifsFileInfo *cfile) in smb2_set_compression() argument
2052 return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid, in smb2_set_compression()
2053 cfile->fid.volatile_fid); in smb2_set_compression()
2058 struct cifsFileInfo *cfile) in smb3_set_integrity() argument
2067 return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_set_integrity()
2068 cfile->fid.volatile_fid, in smb3_set_integrity()
2088 struct cifsFileInfo *cfile, void __user *ioc_buf) in smb3_enum_snapshots() argument
2119 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_enum_snapshots()
2120 cfile->fid.volatile_fid, in smb3_enum_snapshots()
2673 smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in smb2_mand_lock() argument
2678 return SMB2_lock(xid, tlink_tcon(cfile->tlink), in smb2_mand_lock()
2679 cfile->fid.persistent_fid, cfile->fid.volatile_fid, in smb2_mand_lock()
3371 struct cifsFileInfo *cfile = file->private_data; in smb3_zero_range() local
3379 inode = d_inode(cfile->dentry); in smb3_zero_range()
3382 trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3395 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, in smb3_zero_range()
3406 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3407 cfile->fid.volatile_fid, FSCTL_SET_ZERO_DATA, in smb3_zero_range()
3419 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_zero_range()
3420 cfile->fid.volatile_fid, cfile->pid, &eof); in smb3_zero_range()
3426 trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3429 trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_zero_range()
3438 struct cifsFileInfo *cfile = file->private_data; in smb3_punch_hole() local
3449 if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) { in smb3_punch_hole()
3465 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_punch_hole()
3466 cfile->fid.volatile_fid, FSCTL_SET_ZERO_DATA, in smb3_punch_hole()
3478 struct cifsFileInfo *cfile, in smb3_simple_fallocate_write_range() argument
3487 io_parms.netfid = cfile->fid.netfid; in smb3_simple_fallocate_write_range()
3490 io_parms.persistent_fid = cfile->fid.persistent_fid; in smb3_simple_fallocate_write_range()
3491 io_parms.volatile_fid = cfile->fid.volatile_fid; in smb3_simple_fallocate_write_range()
3515 struct cifsFileInfo *cfile, in smb3_simple_fallocate_range() argument
3526 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_fallocate_range()
3527 cfile->fid.volatile_fid, in smb3_simple_fallocate_range()
3548 cfile, off, len, buf); in smb3_simple_fallocate_range()
3567 cfile, off, l, buf); in smb3_simple_fallocate_range()
3602 struct cifsFileInfo *cfile = file->private_data; in smb3_simple_falloc() local
3609 inode = d_inode(cfile->dentry); in smb3_simple_falloc()
3612 trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3617 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, in smb3_simple_falloc()
3632 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3635 rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid, in smb3_simple_falloc()
3636 cfile->fid.volatile_fid, cfile->pid, &eof); in smb3_simple_falloc()
3690 rc = smb3_simple_fallocate_range(xid, tcon, cfile, in smb3_simple_falloc()
3709 smb2_set_sparse(xid, tcon, cfile, inode, false); in smb3_simple_falloc()
3714 trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3717 trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid, in smb3_simple_falloc()
3726 struct cifsFileInfo *wrcfile, *cfile = file->private_data; in smb3_llseek() local
3737 inode = d_inode(cfile->dentry); in smb3_llseek()
3767 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_llseek()
3768 cfile->fid.volatile_fid, in smb3_llseek()
3809 struct cifsFileInfo *cfile, in smb3_fiemap() argument
3818 rc = fiemap_prep(d_inode(cfile->dentry), fei, start, &len, 0); in smb3_fiemap()
3827 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb3_fiemap()
3828 cfile->fid.volatile_fid, in smb3_fiemap()
4143 smb2_dir_needs_close(struct cifsFileInfo *cfile) in smb2_dir_needs_close() argument
4145 return !cfile->invalidHandle; in smb2_dir_needs_close()