/fs/smb/client/ |
D | file.c | 471 struct cifsFileInfo *cfile; in cifs_new_fileinfo() local 476 cfile = kzalloc(sizeof(struct cifsFileInfo), GFP_KERNEL); in cifs_new_fileinfo() 477 if (cfile == NULL) in cifs_new_fileinfo() 478 return cfile; in cifs_new_fileinfo() 482 kfree(cfile); in cifs_new_fileinfo() 487 cfile->symlink_target = kstrdup(symlink_target, GFP_KERNEL); in cifs_new_fileinfo() 488 if (!cfile->symlink_target) { in cifs_new_fileinfo() 490 kfree(cfile); in cifs_new_fileinfo() 496 fdlocks->cfile = cfile; in cifs_new_fileinfo() 497 cfile->llist = fdlocks; in cifs_new_fileinfo() [all …]
|
D | smb2inode.c | 175 int *cmds, int num_cmds, struct cifsFileInfo *cfile, in smb2_compound_op() argument 221 if (cfile) in smb2_compound_op() 275 if (cfile) { in smb2_compound_op() 278 cfile->fid.persistent_fid, in smb2_compound_op() 279 cfile->fid.volatile_fid, in smb2_compound_op() 294 if (!rc && (!cfile || num_rqst > 1)) { in smb2_compound_op() 308 if (cfile) { in smb2_compound_op() 312 cfile->fid.persistent_fid, in smb2_compound_op() 313 cfile->fid.volatile_fid, in smb2_compound_op() 330 if (!rc && (!cfile || num_rqst > 1)) { in smb2_compound_op() [all …]
|
D | misc.c | 628 void cifs_queue_oplock_break(struct cifsFileInfo *cfile) in cifs_queue_oplock_break() argument 636 cifsFileInfo_get(cfile); in cifs_queue_oplock_break() 638 queue_work(cifsoplockd_wq, &cfile->oplock_break); in cifs_queue_oplock_break() 696 cifs_is_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close **pdclose) in cifs_is_deferred_close() argument 700 list_for_each_entry(dclose, &CIFS_I(d_inode(cfile->dentry))->deferred_closes, dlist) { in cifs_is_deferred_close() 701 if ((dclose->netfid == cfile->fid.netfid) && in cifs_is_deferred_close() 702 (dclose->persistent_fid == cfile->fid.persistent_fid) && in cifs_is_deferred_close() 703 (dclose->volatile_fid == cfile->fid.volatile_fid)) { in cifs_is_deferred_close() 715 cifs_add_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close *dclose) in cifs_add_deferred_close() argument 720 is_deferred = cifs_is_deferred_close(cfile, &pdclose); in cifs_add_deferred_close() [all …]
|
D | smb2file.c | 189 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument 195 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range() 196 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_unlock_range() 221 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in smb2_unlock_range() 253 cfile->fid.persistent_fid, in smb2_unlock_range() 254 cfile->fid.volatile_fid, in smb2_unlock_range() 263 &cfile->llist->locks); in smb2_unlock_range() 277 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range() 278 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range() 281 cifs_move_llist(&tmp_llist, &cfile->llist->locks); in smb2_unlock_range() [all …]
|
D | readdir.c | 678 struct cifsFileInfo *cfile = file->private_data; in find_cifs_entry() local 686 if ((cfile == NULL) || (current_entry == NULL) || (num_to_ret == NULL)) in find_cifs_entry() 690 first_entry_in_buffer = cfile->srch_inf.index_of_last_entry - in find_cifs_entry() 691 cfile->srch_inf.entries_in_buffer; in find_cifs_entry() 702 if (((index_to_find < cfile->srch_inf.index_of_last_entry) && in find_cifs_entry() 706 spin_lock(&cfile->file_info_lock); in find_cifs_entry() 707 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry() 708 cfile->invalidHandle = true; in find_cifs_entry() 709 spin_unlock(&cfile->file_info_lock); in find_cifs_entry() 711 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry() [all …]
|
D | smb2misc.c | 544 struct cifsFileInfo *cfile; in smb2_tcon_has_lease() local 551 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_tcon_has_lease() 552 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_tcon_has_lease() 563 cfile->oplock_break_cancelled = false; in smb2_tcon_has_lease() 565 cfile->oplock_break_cancelled = true; in smb2_tcon_has_lease() 569 cfile->oplock_epoch = le16_to_cpu(rsp->Epoch); in smb2_tcon_has_lease() 570 cfile->oplock_level = lease_state; in smb2_tcon_has_lease() 572 cifs_queue_oplock_break(cfile); in smb2_tcon_has_lease() 679 struct cifsFileInfo *cfile; in smb2_is_valid_oplock_break() local 707 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_is_valid_oplock_break() [all …]
|
D | smb2ops.c | 958 struct cifsFileInfo *cfile, struct cifs_open_info_data *data) in smb2_query_file_info() argument 960 struct cifs_fid *fid = &cfile->fid; in smb2_query_file_info() 962 if (cfile->symlink_target) { in smb2_query_file_info() 963 data->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in smb2_query_file_info() 1398 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument 1400 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid() 1401 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid() 1403 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid() 1404 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid() 1405 cfile->fid.access = fid->access; in smb2_set_fid() [all …]
|
D | smb1ops.c | 624 struct cifsFileInfo *cfile, struct cifs_open_info_data *data) in cifs_query_file_info() argument 629 if (cfile->symlink_target) { in cifs_query_file_info() 630 data->symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in cifs_query_file_info() 635 rc = CIFSSMBQFileInfo(xid, tcon, cfile->fid.netfid, &fi); in cifs_query_file_info() 748 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument 750 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in cifs_set_fid() 751 cfile->fid.netfid = fid->netfid; in cifs_set_fid() 867 struct cifsFileInfo *cfile) in cifs_set_compression() argument 869 return CIFSSMB_set_compression(xid, tcon, cfile->fid.netfid); in cifs_set_compression() 943 cifs_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in cifs_mand_lock() argument [all …]
|
D | cifs_debug.c | 240 struct cifsFileInfo *cfile; in cifs_debug_files_proc_show() local 257 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_debug_files_proc_show() 262 cfile->fid.persistent_fid, in cifs_debug_files_proc_show() 263 cfile->f_flags, in cifs_debug_files_proc_show() 264 cfile->count, in cifs_debug_files_proc_show() 265 cfile->pid, in cifs_debug_files_proc_show() 266 from_kuid(&init_user_ns, cfile->uid), in cifs_debug_files_proc_show() 267 cfile->dentry); in cifs_debug_files_proc_show() 269 seq_printf(m, " %llu\n", cfile->fid.mid); in cifs_debug_files_proc_show()
|
D | cifsproto.h | 187 extern int cifs_unlock_range(struct cifsFileInfo *cfile, 189 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile); 271 extern bool cifs_find_lock_conflict(struct cifsFileInfo *cfile, __u64 offset, 283 extern bool cifs_is_deferred_close(struct cifsFileInfo *cfile, 286 extern void cifs_add_deferred_close(struct cifsFileInfo *cfile, 289 extern void cifs_del_deferred_close(struct cifsFileInfo *cfile); 410 struct cifsFileInfo *cfile, __u64 size,
|
D | inode.c | 386 struct cifsFileInfo *cfile = filp->private_data; in cifs_get_file_info_unix() local 387 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info_unix() 391 if (cfile->symlink_target) { in cifs_get_file_info_unix() 392 fattr.cf_symlink_target = kstrdup(cfile->symlink_target, GFP_KERNEL); in cifs_get_file_info_unix() 399 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); in cifs_get_file_info_unix() 815 struct cifsFileInfo *cfile = filp->private_data; in cifs_get_file_info() local 816 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info() 828 rc = server->ops->query_file_info(xid, tcon, cfile, &data); in cifs_get_file_info() 2526 struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data; local 2533 if (tlink_tcon(cfile->tlink)->unix_ext) [all …]
|
D | cifsfs.c | 1046 struct cifsFileInfo *cfile = file->private_data; in cifs_llseek() local 1080 if (cfile && cfile->tlink) { in cifs_llseek() 1081 tcon = tlink_tcon(cfile->tlink); in cifs_llseek() 1097 struct cifsFileInfo *cfile = file->private_data; in cifs_setlease() local 1107 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease() 1500 struct cifsFileInfo *cfile = dst_file->private_data; in cifs_copy_file_range() local 1502 if (cfile->swapfile) { in cifs_copy_file_range()
|
D | cifsglob.h | 372 struct cifsFileInfo *cfile, struct cifs_open_info_data *data); 1423 struct cifsFileInfo *cfile; /* fid that owns locks */ member 1479 struct cifsFileInfo *cfile; member 1500 struct cifsFileInfo *cfile; member 1525 struct cifsFileInfo *cfile; member 1803 struct cifsFileInfo *cfile; member 2104 void cifs_queue_oplock_break(struct cifsFileInfo *cfile);
|
D | smb2proto.h | 118 extern int smb2_unlock_range(struct cifsFileInfo *cfile, 120 extern int smb2_push_mandatory_locks(struct cifsFileInfo *cfile);
|
D | smb2pdu.c | 4490 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_readv_callback() 4560 rdata->cfile->fid.persistent_fid, in smb2_readv_callback() 4565 rdata->cfile->fid.persistent_fid, in smb2_readv_callback() 4585 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv() 4595 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv() 4599 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; in smb2_async_readv() 4600 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; in smb2_async_readv() 4742 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback() 4803 wdata->cfile->fid.persistent_fid, in smb2_writev_callback() 4811 wdata->cfile->fid.persistent_fid, in smb2_writev_callback() [all …]
|
D | cifssmb.c | 1266 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback() 1320 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv() 1345 smb->Fid = rdata->cfile->fid.netfid; in cifs_async_readv() 1619 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_writev_callback() 1669 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_async_writev() 1691 smb->Fid = wdata->cfile->fid.netfid; in cifs_async_writev() 5084 struct cifsFileInfo *cfile, __u64 size, bool set_allocation) in CIFSSMBSetFileSize() argument 5098 pSMB->hdr.Pid = cpu_to_le16((__u16)cfile->pid); in CIFSSMBSetFileSize() 5099 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(cfile->pid >> 16)); in CIFSSMBSetFileSize() 5128 pSMB->Fid = cfile->fid.netfid; in CIFSSMBSetFileSize()
|