Lines Matching refs:req
61 struct ecryptfs_open_req *req; in ecryptfs_threadfn() local
73 req = list_first_entry(&ecryptfs_kthread_ctl.req_list, in ecryptfs_threadfn()
76 list_del(&req->kthread_ctl_list); in ecryptfs_threadfn()
77 *req->lower_file = dentry_open(&req->path, in ecryptfs_threadfn()
79 complete(&req->done); in ecryptfs_threadfn()
106 struct ecryptfs_open_req *req, *tmp; in ecryptfs_destroy_kthread() local
110 list_for_each_entry_safe(req, tmp, &ecryptfs_kthread_ctl.req_list, in ecryptfs_destroy_kthread()
112 list_del(&req->kthread_ctl_list); in ecryptfs_destroy_kthread()
113 *req->lower_file = ERR_PTR(-EIO); in ecryptfs_destroy_kthread()
114 complete(&req->done); in ecryptfs_destroy_kthread()
136 struct ecryptfs_open_req req; in ecryptfs_privileged_open() local
140 init_completion(&req.done); in ecryptfs_privileged_open()
141 req.lower_file = lower_file; in ecryptfs_privileged_open()
142 req.path.dentry = lower_dentry; in ecryptfs_privileged_open()
143 req.path.mnt = lower_mnt; in ecryptfs_privileged_open()
149 (*lower_file) = dentry_open(&req.path, flags, cred); in ecryptfs_privileged_open()
165 list_add_tail(&req.kthread_ctl_list, &ecryptfs_kthread_ctl.req_list); in ecryptfs_privileged_open()
168 wait_for_completion(&req.done); in ecryptfs_privileged_open()