/fs/cifs/ |
D | smb2file.c | 110 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument 116 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range() 117 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_unlock_range() 140 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in smb2_unlock_range() 167 cfile->fid.persistent_fid, in smb2_unlock_range() 168 cfile->fid.volatile_fid, in smb2_unlock_range() 177 &cfile->llist->locks); in smb2_unlock_range() 191 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range() 192 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range() 195 cifs_move_llist(&tmp_llist, &cfile->llist->locks); in smb2_unlock_range() [all …]
|
D | file.c | 284 struct cifsFileInfo *cfile; in cifs_new_fileinfo() local 289 cfile = kzalloc(sizeof(struct cifsFileInfo), GFP_KERNEL); in cifs_new_fileinfo() 290 if (cfile == NULL) in cifs_new_fileinfo() 291 return cfile; in cifs_new_fileinfo() 295 kfree(cfile); in cifs_new_fileinfo() 300 fdlocks->cfile = cfile; in cifs_new_fileinfo() 301 cfile->llist = fdlocks; in cifs_new_fileinfo() 306 cfile->count = 1; in cifs_new_fileinfo() 307 cfile->pid = current->tgid; in cifs_new_fileinfo() 308 cfile->uid = current_fsuid(); in cifs_new_fileinfo() [all …]
|
D | readdir.c | 573 struct cifsFileInfo *cfile = file->private_data; in find_cifs_entry() local 581 if ((cfile == NULL) || (current_entry == NULL) || (num_to_ret == NULL)) in find_cifs_entry() 585 first_entry_in_buffer = cfile->srch_inf.index_of_last_entry - in find_cifs_entry() 586 cfile->srch_inf.entries_in_buffer; in find_cifs_entry() 597 if (((index_to_find < cfile->srch_inf.index_of_last_entry) && in find_cifs_entry() 601 spin_lock(&cfile->file_info_lock); in find_cifs_entry() 602 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry() 603 cfile->invalidHandle = true; in find_cifs_entry() 604 spin_unlock(&cfile->file_info_lock); in find_cifs_entry() 606 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry() [all …]
|
D | smb2misc.c | 469 struct cifsFileInfo *cfile; in smb2_tcon_has_lease() local 479 cfile = list_entry(tmp, struct cifsFileInfo, tlist); in smb2_tcon_has_lease() 480 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_tcon_has_lease() 493 cfile->oplock_break_cancelled = false; in smb2_tcon_has_lease() 495 cfile->oplock_break_cancelled = true; in smb2_tcon_has_lease() 497 queue_work(cifsoplockd_wq, &cfile->oplock_break); in smb2_tcon_has_lease() 581 struct cifsFileInfo *cfile; in smb2_is_valid_oplock_break() local 608 cfile = list_entry(tmp2, struct cifsFileInfo, in smb2_is_valid_oplock_break() 611 cfile->fid.persistent_fid || in smb2_is_valid_oplock_break() 613 cfile->fid.volatile_fid) in smb2_is_valid_oplock_break() [all …]
|
D | smb2ops.c | 539 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument 541 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid() 542 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid() 544 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid() 545 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid() 549 memcpy(cfile->fid.create_guid, fid->create_guid, 16); in smb2_set_fid() 757 struct cifsFileInfo *cfile, struct inode *inode, __u8 setsparse) in smb2_set_sparse() argument 784 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse() 785 cfile->fid.volatile_fid, FSCTL_SET_SPARSE, in smb2_set_sparse() 803 struct cifsFileInfo *cfile, __u64 size, bool set_alloc) in smb2_set_file_size() argument [all …]
|
D | smb1ops.c | 723 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument 725 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in cifs_set_fid() 726 cfile->fid.netfid = fid->netfid; in cifs_set_fid() 841 struct cifsFileInfo *cfile) in cifs_set_compression() argument 843 return CIFSSMB_set_compression(xid, tcon, cfile->fid.netfid); in cifs_set_compression() 918 cifs_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in cifs_mand_lock() argument 921 return CIFSSMBLock(xid, tlink_tcon(cfile->tlink), cfile->fid.netfid, in cifs_mand_lock() 1018 cifs_dir_needs_close(struct cifsFileInfo *cfile) in cifs_dir_needs_close() argument 1020 return !cfile->srch_inf.endOfSearch && !cfile->invalidHandle; in cifs_dir_needs_close()
|
D | cifsproto.h | 137 extern int cifs_unlock_range(struct cifsFileInfo *cfile, 139 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile); 198 extern bool cifs_find_lock_conflict(struct cifsFileInfo *cfile, __u64 offset, 316 struct cifsFileInfo *cfile, __u64 size,
|
D | smb2proto.h | 100 extern int smb2_unlock_range(struct cifsFileInfo *cfile, 102 extern int smb2_push_mandatory_locks(struct cifsFileInfo *cfile);
|
D | inode.c | 339 struct cifsFileInfo *cfile = filp->private_data; local 340 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); 343 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); 661 struct cifsFileInfo *cfile = filp->private_data; local 662 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); 669 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data); 1948 struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data; local 1953 if (tlink_tcon(cfile->tlink)->unix_ext)
|
D | smb2pdu.c | 2185 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_readv_callback() 2255 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv() 2258 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; in smb2_async_readv() 2259 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; in smb2_async_readv() 2365 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback() 2419 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_async_writev() 2437 req->hdr.ProcessId = cpu_to_le32(wdata->cfile->pid); in smb2_async_writev() 2439 req->PersistentFileId = wdata->cfile->fid.persistent_fid; in smb2_async_writev() 2440 req->VolatileFileId = wdata->cfile->fid.volatile_fid; in smb2_async_writev()
|
D | cifssmb.c | 1558 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback() 1615 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv() 1640 smb->Fid = rdata->cfile->fid.netfid; in cifs_async_readv() 1909 if (wdata->cfile) in cifs_writedata_release() 1910 cifsFileInfo_put(wdata->cfile); in cifs_writedata_release() 1923 struct inode *inode = d_inode(wdata->cfile->dentry); in cifs_writev_requeue() 1927 server = tlink_tcon(wdata->cfile->tlink)->ses->server; in cifs_writev_requeue() 1968 wdata2->cfile = find_writable_file(CIFS_I(inode), false); in cifs_writev_requeue() 1969 if (!wdata2->cfile) { in cifs_writev_requeue() 1974 wdata2->pid = wdata2->cfile->pid; in cifs_writev_requeue() [all …]
|
D | cifsglob.h | 1062 struct cifsFileInfo *cfile; /* fid that owns locks */ member 1109 struct cifsFileInfo *cfile; member 1137 struct cifsFileInfo *cfile; member
|
D | cifsfs.c | 860 struct cifsFileInfo *cfile = file->private_data; in cifs_setlease() local 870 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease()
|