• Home
  • Raw
  • Download

Lines Matching refs:passthrough

82 	struct file *passthrough_filp = ff->passthrough.filp;  in fuse_passthrough_read_iter()
87 old_cred = override_creds(ff->passthrough.cred); in fuse_passthrough_read_iter()
124 struct file *passthrough_filp = ff->passthrough.filp; in fuse_passthrough_write_iter()
134 old_cred = override_creds(ff->passthrough.cred); in fuse_passthrough_write_iter()
174 struct file *passthrough_filp = ff->passthrough.filp; in fuse_passthrough_mmap()
184 old_cred = override_creds(ff->passthrough.cred); in fuse_passthrough_mmap()
205 struct fuse_passthrough *passthrough; in fuse_passthrough_open() local
207 if (!fc->passthrough) in fuse_passthrough_open()
232 passthrough = kmalloc(sizeof(struct fuse_passthrough), GFP_KERNEL); in fuse_passthrough_open()
233 if (!passthrough) { in fuse_passthrough_open()
238 passthrough->filp = passthrough_filp; in fuse_passthrough_open()
239 passthrough->cred = prepare_creds(); in fuse_passthrough_open()
243 res = idr_alloc(&fc->passthrough_req, passthrough, 1, 0, GFP_ATOMIC); in fuse_passthrough_open()
250 fuse_passthrough_release(passthrough); in fuse_passthrough_open()
251 kfree(passthrough); in fuse_passthrough_open()
262 struct fuse_passthrough *passthrough; in fuse_passthrough_setup() local
265 if (!fc->passthrough) in fuse_passthrough_setup()
273 passthrough = idr_remove(&fc->passthrough_req, passthrough_fh); in fuse_passthrough_setup()
276 if (!passthrough) in fuse_passthrough_setup()
279 ff->passthrough = *passthrough; in fuse_passthrough_setup()
280 kfree(passthrough); in fuse_passthrough_setup()
285 void fuse_passthrough_release(struct fuse_passthrough *passthrough) in fuse_passthrough_release() argument
287 if (passthrough->filp) { in fuse_passthrough_release()
288 fput(passthrough->filp); in fuse_passthrough_release()
289 passthrough->filp = NULL; in fuse_passthrough_release()
291 if (passthrough->cred) { in fuse_passthrough_release()
292 put_cred(passthrough->cred); in fuse_passthrough_release()
293 passthrough->cred = NULL; in fuse_passthrough_release()