/Linux-v5.10/drivers/misc/genwqe/ |
D | card_dev.c | 43 static void genwqe_add_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_add_file() argument 47 cfile->opener = get_pid(task_tgid(current)); in genwqe_add_file() 49 list_add(&cfile->list, &cd->file_list); in genwqe_add_file() 53 static int genwqe_del_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_del_file() argument 58 list_del(&cfile->list); in genwqe_del_file() 60 put_pid(cfile->opener); in genwqe_del_file() 65 static void genwqe_add_pin(struct genwqe_file *cfile, struct dma_mapping *m) in genwqe_add_pin() argument 69 spin_lock_irqsave(&cfile->pin_lock, flags); in genwqe_add_pin() 70 list_add(&m->pin_list, &cfile->pin_list); in genwqe_add_pin() 71 spin_unlock_irqrestore(&cfile->pin_lock, flags); in genwqe_add_pin() [all …]
|
/Linux-v5.10/fs/cifs/ |
D | smb2file.c | 117 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument 123 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range() 124 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_unlock_range() 149 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in smb2_unlock_range() 181 cfile->fid.persistent_fid, in smb2_unlock_range() 182 cfile->fid.volatile_fid, in smb2_unlock_range() 191 &cfile->llist->locks); in smb2_unlock_range() 205 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range() 206 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range() 209 cifs_move_llist(&tmp_llist, &cfile->llist->locks); in smb2_unlock_range() [all …]
|
D | file.c | 298 struct cifsFileInfo *cfile; in cifs_new_fileinfo() local 303 cfile = kzalloc(sizeof(struct cifsFileInfo), GFP_KERNEL); in cifs_new_fileinfo() 304 if (cfile == NULL) in cifs_new_fileinfo() 305 return cfile; in cifs_new_fileinfo() 309 kfree(cfile); in cifs_new_fileinfo() 314 fdlocks->cfile = cfile; in cifs_new_fileinfo() 315 cfile->llist = fdlocks; in cifs_new_fileinfo() 317 cfile->count = 1; in cifs_new_fileinfo() 318 cfile->pid = current->tgid; in cifs_new_fileinfo() 319 cfile->uid = current_fsuid(); in cifs_new_fileinfo() [all …]
|
D | smb2inode.c | 67 struct cifsFileInfo *cfile) in smb2_compound_op() argument 101 if (cfile) in smb2_compound_op() 140 if (cfile) in smb2_compound_op() 143 cfile->fid.persistent_fid, in smb2_compound_op() 144 cfile->fid.volatile_fid, in smb2_compound_op() 174 if (cfile) in smb2_compound_op() 177 cfile->fid.persistent_fid, in smb2_compound_op() 178 cfile->fid.volatile_fid, in smb2_compound_op() 258 if (cfile) in smb2_compound_op() 261 cfile->fid.persistent_fid, in smb2_compound_op() [all …]
|
D | readdir.c | 714 struct cifsFileInfo *cfile = file->private_data; in find_cifs_entry() local 722 if ((cfile == NULL) || (current_entry == NULL) || (num_to_ret == NULL)) in find_cifs_entry() 726 first_entry_in_buffer = cfile->srch_inf.index_of_last_entry - in find_cifs_entry() 727 cfile->srch_inf.entries_in_buffer; in find_cifs_entry() 738 if (((index_to_find < cfile->srch_inf.index_of_last_entry) && in find_cifs_entry() 742 spin_lock(&cfile->file_info_lock); in find_cifs_entry() 743 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry() 744 cfile->invalidHandle = true; in find_cifs_entry() 745 spin_unlock(&cfile->file_info_lock); in find_cifs_entry() 747 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry() [all …]
|
D | smb2misc.c | 535 struct cifsFileInfo *cfile; in smb2_tcon_has_lease() local 543 cfile = list_entry(tmp, struct cifsFileInfo, tlist); in smb2_tcon_has_lease() 544 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_tcon_has_lease() 555 cfile->oplock_break_cancelled = false; in smb2_tcon_has_lease() 557 cfile->oplock_break_cancelled = true; in smb2_tcon_has_lease() 561 cfile->oplock_epoch = le16_to_cpu(rsp->Epoch); in smb2_tcon_has_lease() 562 cfile->oplock_level = lease_state; in smb2_tcon_has_lease() 564 cifs_queue_oplock_break(cfile); in smb2_tcon_has_lease() 676 struct cifsFileInfo *cfile; in smb2_is_valid_oplock_break() local 703 cfile = list_entry(tmp2, struct cifsFileInfo, in smb2_is_valid_oplock_break() [all …]
|
D | smb2ops.c | 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() 1407 cfile->fid.mid = fid->mid; in smb2_set_fid() 1412 memcpy(cfile->fid.create_guid, fid->create_guid, 16); in smb2_set_fid() 1424 struct cifsFileInfo *cfile) in smb2_close_getattr() argument 1430 rc = __SMB2_close(xid, tcon, cfile->fid.persistent_fid, in smb2_close_getattr() [all …]
|
D | smb1ops.c | 712 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument 714 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in cifs_set_fid() 715 cfile->fid.netfid = fid->netfid; in cifs_set_fid() 830 struct cifsFileInfo *cfile) in cifs_set_compression() argument 832 return CIFSSMB_set_compression(xid, tcon, cfile->fid.netfid); in cifs_set_compression() 907 cifs_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in cifs_mand_lock() argument 910 return CIFSSMBLock(xid, tlink_tcon(cfile->tlink), cfile->fid.netfid, in cifs_mand_lock() 1012 cifs_dir_needs_close(struct cifsFileInfo *cfile) in cifs_dir_needs_close() argument 1014 return !cfile->srch_inf.endOfSearch && !cfile->invalidHandle; in cifs_dir_needs_close()
|
D | cifs_debug.c | 170 struct cifsFileInfo *cfile; in cifs_debug_files_proc_show() local 190 cfile = list_entry(tmp2, struct cifsFileInfo, in cifs_debug_files_proc_show() 195 cfile->fid.persistent_fid, in cifs_debug_files_proc_show() 196 cfile->f_flags, in cifs_debug_files_proc_show() 197 cfile->count, in cifs_debug_files_proc_show() 198 cfile->pid, in cifs_debug_files_proc_show() 199 from_kuid(&init_user_ns, cfile->uid), in cifs_debug_files_proc_show() 200 cfile->dentry->d_name.name); in cifs_debug_files_proc_show() 202 seq_printf(m, " 0x%llx\n", cfile->fid.mid); in cifs_debug_files_proc_show()
|
D | cifsfs.c | 950 struct cifsFileInfo *cfile = file->private_data; in cifs_llseek() local 984 if (cfile && cfile->tlink) { in cifs_llseek() 985 tcon = tlink_tcon(cfile->tlink); in cifs_llseek() 1001 struct cifsFileInfo *cfile = file->private_data; in cifs_setlease() local 1011 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease() 1221 struct cifsFileInfo *cfile = dst_file->private_data; in cifs_copy_file_range() local 1223 if (cfile->swapfile) in cifs_copy_file_range()
|
D | inode.c | 353 struct cifsFileInfo *cfile = filp->private_data; local 354 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); 357 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); 746 struct cifsFileInfo *cfile = filp->private_data; local 747 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); 754 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data); 2281 struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data; local 2286 if (tlink_tcon(cfile->tlink)->unix_ext) 2443 struct cifsFileInfo *cfile; local 2459 cfile = find_readable_file(cifs_i, false); [all …]
|
D | cifsproto.h | 176 extern int cifs_unlock_range(struct cifsFileInfo *cfile, 178 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile); 248 extern bool cifs_find_lock_conflict(struct cifsFileInfo *cfile, __u64 offset, 370 struct cifsFileInfo *cfile, __u64 size,
|
D | misc.c | 612 void cifs_queue_oplock_break(struct cifsFileInfo *cfile) in cifs_queue_oplock_break() argument 620 cifsFileInfo_get(cfile); in cifs_queue_oplock_break() 622 queue_work(cifsoplockd_wq, &cfile->oplock_break); in cifs_queue_oplock_break() 808 cifsFileInfo_put(ctx->cfile); in cifs_aio_ctx_release()
|
D | cifsglob.h | 1301 struct cifsFileInfo *cfile; /* fid that owns locks */ member 1351 struct cifsFileInfo *cfile; member 1373 struct cifsFileInfo *cfile; member 1410 struct cifsFileInfo *cfile; member 1970 void cifs_queue_oplock_break(struct cifsFileInfo *cfile);
|
D | smb2proto.h | 122 extern int smb2_unlock_range(struct cifsFileInfo *cfile, 124 extern int smb2_push_mandatory_locks(struct cifsFileInfo *cfile);
|
D | cifssmb.c | 1622 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback() 1679 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv() 1704 smb->Fid = rdata->cfile->fid.netfid; in cifs_async_readv() 1982 if (wdata->cfile) in cifs_writedata_release() 1983 cifsFileInfo_put(wdata->cfile); in cifs_writedata_release() 1997 struct inode *inode = d_inode(wdata->cfile->dentry); in cifs_writev_requeue() 2001 server = tlink_tcon(wdata->cfile->tlink)->ses->server; in cifs_writev_requeue() 2043 &wdata2->cfile); in cifs_writev_requeue() 2044 if (!wdata2->cfile) { in cifs_writev_requeue() 2050 wdata2->pid = wdata2->cfile->pid; in cifs_writev_requeue() [all …]
|
D | smb2pdu.c | 3905 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_readv_callback() 3974 rdata->cfile->fid.persistent_fid, in smb2_readv_callback() 3979 rdata->cfile->fid.persistent_fid, in smb2_readv_callback() 3999 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv() 4008 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv() 4012 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; in smb2_async_readv() 4013 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; in smb2_async_readv() 4149 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback() 4210 wdata->cfile->fid.persistent_fid, in smb2_writev_callback() 4218 wdata->cfile->fid.persistent_fid, in smb2_writev_callback() [all …]
|
/Linux-v5.10/drivers/mtd/nand/raw/ |
D | nandsim.c | 351 struct file *cfile; /* Open file */ member 536 struct file *cfile; in ns_alloc_device() local 540 cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600); in ns_alloc_device() 541 if (IS_ERR(cfile)) in ns_alloc_device() 542 return PTR_ERR(cfile); in ns_alloc_device() 543 if (!(cfile->f_mode & FMODE_CAN_READ)) { in ns_alloc_device() 548 if (!(cfile->f_mode & FMODE_CAN_WRITE)) { in ns_alloc_device() 567 ns->cfile = cfile; in ns_alloc_device() 574 filp_close(cfile, NULL); in ns_alloc_device() 610 if (ns->cfile) { in ns_free_device() [all …]
|
/Linux-v5.10/kernel/cgroup/ |
D | cgroup.c | 1624 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_rm_file() local 1627 cfile->kn = NULL; in cgroup_rm_file() 1630 del_timer_sync(&cfile->notify_timer); in cgroup_rm_file() 3838 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_add_file() local 3840 timer_setup(&cfile->notify_timer, cgroup_file_notify_timer, 0); in cgroup_add_file() 3843 cfile->kn = kn; in cgroup_add_file() 4087 void cgroup_file_notify(struct cgroup_file *cfile) in cgroup_file_notify() argument 4092 if (cfile->kn) { in cgroup_file_notify() 4093 unsigned long last = cfile->notified_at; in cgroup_file_notify() 4097 timer_reduce(&cfile->notify_timer, next); in cgroup_file_notify() [all …]
|
/Linux-v5.10/include/linux/ |
D | cgroup.h | 116 void cgroup_file_notify(struct cgroup_file *cfile);
|
/Linux-v5.10/mm/ |
D | memcontrol.c | 4867 struct fd cfile; in memcg_write_event_control() local 4906 cfile = fdget(cfd); in memcg_write_event_control() 4907 if (!cfile.file) { in memcg_write_event_control() 4914 ret = inode_permission(file_inode(cfile.file), MAY_READ); in memcg_write_event_control() 4926 name = cfile.file->f_path.dentry->d_name.name; in memcg_write_event_control() 4950 cfile_css = css_tryget_online_from_dir(cfile.file->f_path.dentry->d_parent, in memcg_write_event_control() 4970 fdput(cfile); in memcg_write_event_control() 4978 fdput(cfile); in memcg_write_event_control()
|