Home
last modified time | relevance | path

Searched refs:cfile (Results 1 – 19 of 19) sorted by relevance

/Linux-v4.19/drivers/misc/genwqe/
Dcard_dev.c51 static void genwqe_add_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_add_file() argument
55 cfile->owner = current; in genwqe_add_file()
57 list_add(&cfile->list, &cd->file_list); in genwqe_add_file()
61 static int genwqe_del_file(struct genwqe_dev *cd, struct genwqe_file *cfile) in genwqe_del_file() argument
66 list_del(&cfile->list); in genwqe_del_file()
72 static void genwqe_add_pin(struct genwqe_file *cfile, struct dma_mapping *m) in genwqe_add_pin() argument
76 spin_lock_irqsave(&cfile->pin_lock, flags); in genwqe_add_pin()
77 list_add(&m->pin_list, &cfile->pin_list); in genwqe_add_pin()
78 spin_unlock_irqrestore(&cfile->pin_lock, flags); in genwqe_add_pin()
81 static int genwqe_del_pin(struct genwqe_file *cfile, struct dma_mapping *m) in genwqe_del_pin() argument
[all …]
/Linux-v4.19/fs/cifs/
Dsmb2file.c109 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument
115 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in smb2_unlock_range()
116 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_unlock_range()
139 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in smb2_unlock_range()
166 cfile->fid.persistent_fid, in smb2_unlock_range()
167 cfile->fid.volatile_fid, in smb2_unlock_range()
176 &cfile->llist->locks); in smb2_unlock_range()
190 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range()
191 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range()
194 cifs_move_llist(&tmp_llist, &cfile->llist->locks); in smb2_unlock_range()
[all …]
Dfile.c284 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 …]
Dreaddir.c580 struct cifsFileInfo *cfile = file->private_data; in find_cifs_entry() local
588 if ((cfile == NULL) || (current_entry == NULL) || (num_to_ret == NULL)) in find_cifs_entry()
592 first_entry_in_buffer = cfile->srch_inf.index_of_last_entry - in find_cifs_entry()
593 cfile->srch_inf.entries_in_buffer; in find_cifs_entry()
604 if (((index_to_find < cfile->srch_inf.index_of_last_entry) && in find_cifs_entry()
608 spin_lock(&cfile->file_info_lock); in find_cifs_entry()
609 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry()
610 cfile->invalidHandle = true; in find_cifs_entry()
611 spin_unlock(&cfile->file_info_lock); in find_cifs_entry()
613 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry()
[all …]
Dsmb2misc.c519 struct cifsFileInfo *cfile; in smb2_tcon_has_lease() local
529 cfile = list_entry(tmp, struct cifsFileInfo, tlist); in smb2_tcon_has_lease()
530 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_tcon_has_lease()
543 cfile->oplock_break_cancelled = false; in smb2_tcon_has_lease()
545 cfile->oplock_break_cancelled = true; in smb2_tcon_has_lease()
547 queue_work(cifsoplockd_wq, &cfile->oplock_break); in smb2_tcon_has_lease()
644 struct cifsFileInfo *cfile; in smb2_is_valid_oplock_break() local
671 cfile = list_entry(tmp2, struct cifsFileInfo, in smb2_is_valid_oplock_break()
674 cfile->fid.persistent_fid || in smb2_is_valid_oplock_break()
676 cfile->fid.volatile_fid) in smb2_is_valid_oplock_break()
[all …]
Dsmb2ops.c1010 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
1012 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid()
1013 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1015 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid()
1016 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid()
1020 memcpy(cfile->fid.create_guid, fid->create_guid, 16); in smb2_set_fid()
1238 struct cifsFileInfo *cfile, struct inode *inode, __u8 setsparse) in smb2_set_sparse() argument
1265 rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid, in smb2_set_sparse()
1266 cfile->fid.volatile_fid, FSCTL_SET_SPARSE, in smb2_set_sparse()
1285 struct cifsFileInfo *cfile, __u64 size, bool set_alloc) in smb2_set_file_size() argument
[all …]
Dsmb1ops.c722 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument
724 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in cifs_set_fid()
725 cfile->fid.netfid = fid->netfid; in cifs_set_fid()
840 struct cifsFileInfo *cfile) in cifs_set_compression() argument
842 return CIFSSMB_set_compression(xid, tcon, cfile->fid.netfid); in cifs_set_compression()
917 cifs_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, in cifs_mand_lock() argument
920 return CIFSSMBLock(xid, tlink_tcon(cfile->tlink), cfile->fid.netfid, in cifs_mand_lock()
1017 cifs_dir_needs_close(struct cifsFileInfo *cfile) in cifs_dir_needs_close() argument
1019 return !cfile->srch_inf.endOfSearch && !cfile->invalidHandle; in cifs_dir_needs_close()
Dcifsproto.h158 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
160 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
221 extern bool cifs_find_lock_conflict(struct cifsFileInfo *cfile, __u64 offset,
344 struct cifsFileInfo *cfile, __u64 size,
Dsmb2proto.h112 extern int smb2_unlock_range(struct cifsFileInfo *cfile,
114 extern int smb2_push_mandatory_locks(struct cifsFileInfo *cfile);
Dcifsglob.h1122 struct cifsFileInfo *cfile; /* fid that owns locks */ member
1167 struct cifsFileInfo *cfile; member
1184 struct cifsFileInfo *cfile; member
1220 struct cifsFileInfo *cfile; member
Dinode.c344 struct cifsFileInfo *cfile = filp->private_data; local
345 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
348 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
669 struct cifsFileInfo *cfile = filp->private_data; local
670 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
677 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data);
1963 struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data; local
1968 if (tlink_tcon(cfile->tlink)->unix_ext)
Dcifssmb.c1605 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback()
1660 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv()
1685 smb->Fid = rdata->cfile->fid.netfid; in cifs_async_readv()
1963 if (wdata->cfile) in cifs_writedata_release()
1964 cifsFileInfo_put(wdata->cfile); in cifs_writedata_release()
1978 struct inode *inode = d_inode(wdata->cfile->dentry); in cifs_writev_requeue()
1982 server = tlink_tcon(wdata->cfile->tlink)->ses->server; in cifs_writev_requeue()
2023 wdata2->cfile = find_writable_file(CIFS_I(inode), false); in cifs_writev_requeue()
2024 if (!wdata2->cfile) { in cifs_writev_requeue()
2029 wdata2->pid = wdata2->cfile->pid; in cifs_writev_requeue()
[all …]
Dsmb2pdu.c3072 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in smb2_readv_callback()
3154 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
3157 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; in smb2_async_readv()
3158 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; in smb2_async_readv()
3295 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_writev_callback()
3359 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in smb2_async_writev()
3382 shdr->ProcessId = cpu_to_le32(wdata->cfile->pid); in smb2_async_writev()
3384 req->PersistentFileId = wdata->cfile->fid.persistent_fid; in smb2_async_writev()
3385 req->VolatileFileId = wdata->cfile->fid.volatile_fid; in smb2_async_writev()
Dcifsfs.c904 struct cifsFileInfo *cfile = file->private_data; in cifs_setlease() local
914 else if (tlink_tcon(cfile->tlink)->local_lease && in cifs_setlease()
Dmisc.c767 cifsFileInfo_put(ctx->cfile); in cifs_aio_ctx_release()
/Linux-v4.19/drivers/mtd/nand/raw/
Dnandsim.c362 struct file *cfile; /* Open file */ member
551 struct file *cfile; in alloc_device() local
555 cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600); in alloc_device()
556 if (IS_ERR(cfile)) in alloc_device()
557 return PTR_ERR(cfile); in alloc_device()
558 if (!(cfile->f_mode & FMODE_CAN_READ)) { in alloc_device()
563 if (!(cfile->f_mode & FMODE_CAN_WRITE)) { in alloc_device()
582 ns->cfile = cfile; in alloc_device()
606 filp_close(cfile, NULL); in alloc_device()
617 if (ns->cfile) { in free_device()
[all …]
/Linux-v4.19/kernel/cgroup/
Dcgroup.c1558 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_rm_file() local
1561 cfile->kn = NULL; in cgroup_rm_file()
1564 del_timer_sync(&cfile->notify_timer); in cgroup_rm_file()
3584 struct cgroup_file *cfile = (void *)css + cft->file_offset; in cgroup_add_file() local
3586 timer_setup(&cfile->notify_timer, cgroup_file_notify_timer, 0); in cgroup_add_file()
3589 cfile->kn = kn; in cgroup_add_file()
3832 void cgroup_file_notify(struct cgroup_file *cfile) in cgroup_file_notify() argument
3837 if (cfile->kn) { in cgroup_file_notify()
3838 unsigned long last = cfile->notified_at; in cgroup_file_notify()
3842 timer_reduce(&cfile->notify_timer, next); in cgroup_file_notify()
[all …]
/Linux-v4.19/mm/
Dmemcontrol.c4035 struct fd cfile; in memcg_write_event_control() local
4074 cfile = fdget(cfd); in memcg_write_event_control()
4075 if (!cfile.file) { in memcg_write_event_control()
4082 ret = inode_permission(file_inode(cfile.file), MAY_READ); in memcg_write_event_control()
4094 name = cfile.file->f_path.dentry->d_name.name; in memcg_write_event_control()
4118 cfile_css = css_tryget_online_from_dir(cfile.file->f_path.dentry->d_parent, in memcg_write_event_control()
4138 fdput(cfile); in memcg_write_event_control()
4146 fdput(cfile); in memcg_write_event_control()
/Linux-v4.19/include/linux/
Dcgroup.h110 void cgroup_file_notify(struct cgroup_file *cfile);