Lines Matching refs:req
46 struct ecryptfs_open_req *req; in ecryptfs_threadfn() local
58 req = list_first_entry(&ecryptfs_kthread_ctl.req_list, in ecryptfs_threadfn()
61 list_del(&req->kthread_ctl_list); in ecryptfs_threadfn()
62 *req->lower_file = dentry_open(&req->path, in ecryptfs_threadfn()
64 complete(&req->done); in ecryptfs_threadfn()
91 struct ecryptfs_open_req *req, *tmp; in ecryptfs_destroy_kthread() local
95 list_for_each_entry_safe(req, tmp, &ecryptfs_kthread_ctl.req_list, in ecryptfs_destroy_kthread()
97 list_del(&req->kthread_ctl_list); in ecryptfs_destroy_kthread()
98 *req->lower_file = ERR_PTR(-EIO); in ecryptfs_destroy_kthread()
99 complete(&req->done); in ecryptfs_destroy_kthread()
122 struct ecryptfs_open_req req; in ecryptfs_privileged_open() local
126 init_completion(&req.done); in ecryptfs_privileged_open()
127 req.lower_file = lower_file; in ecryptfs_privileged_open()
128 req.path.dentry = lower_dentry; in ecryptfs_privileged_open()
129 req.path.mnt = lower_mnt; in ecryptfs_privileged_open()
135 (*lower_file) = dentry_open(&req.path, flags, cred); in ecryptfs_privileged_open()
151 list_add_tail(&req.kthread_ctl_list, &ecryptfs_kthread_ctl.req_list); in ecryptfs_privileged_open()
154 wait_for_completion(&req.done); in ecryptfs_privileged_open()