Lines Matching refs:resfh
55 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument
57 struct inode *inode = d_inode(resfh->fh_dentry); in nfsd4_security_inode_setsecctx()
61 status = security_inode_setsecctx(resfh->fh_dentry, in nfsd4_security_inode_setsecctx()
77 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument
216 …ner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh) in nfsd4_set_open_owner_reply_cache() argument
221 &resfh->fh_handle); in nfsd4_set_open_owner_reply_cache()
225 …c_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) in do_open_lookup() argument
231 *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL); in do_open_lookup()
232 if (!*resfh) in do_open_lookup()
234 fh_init(*resfh, NFS4_FHSIZE); in do_open_lookup()
260 *resfh, open->op_createmode, in do_open_lookup()
266 nfsd4_security_inode_setsecctx(*resfh, &open->op_label, open->op_bmval); in do_open_lookup()
284 open->op_fname.data, open->op_fname.len, *resfh); in do_open_lookup()
287 status = nfsd_check_obj_isreg(*resfh); in do_open_lookup()
292 do_set_nfs4_acl(rqstp, *resfh, open->op_acl, open->op_bmval); in do_open_lookup()
294 nfsd4_set_open_owner_reply_cache(cstate, open, *resfh); in do_open_lookup()
299 status = do_open_permission(rqstp, *resfh, open, accmode); in do_open_lookup()
355 struct svc_fh *resfh = NULL; in nfsd4_open() local
419 status = do_open_lookup(rqstp, cstate, open, &resfh); in nfsd4_open()
436 resfh = &cstate->current_fh; in nfsd4_open()
455 status = nfsd4_process_open2(rqstp, resfh, open); in nfsd4_open()
462 if (resfh && resfh != &cstate->current_fh) { in nfsd4_open()
463 fh_dup2(&cstate->current_fh, resfh); in nfsd4_open()
464 fh_put(resfh); in nfsd4_open()
465 kfree(resfh); in nfsd4_open()
594 struct svc_fh resfh; in nfsd4_create() local
598 fh_init(&resfh, NFS4_FHSIZE); in nfsd4_create()
614 create->cr_data, &resfh); in nfsd4_create()
625 &create->cr_iattr, S_IFBLK, rdev, &resfh); in nfsd4_create()
636 &create->cr_iattr,S_IFCHR, rdev, &resfh); in nfsd4_create()
642 &create->cr_iattr, S_IFSOCK, 0, &resfh); in nfsd4_create()
648 &create->cr_iattr, S_IFIFO, 0, &resfh); in nfsd4_create()
655 &create->cr_iattr, S_IFDIR, 0, &resfh); in nfsd4_create()
666 nfsd4_security_inode_setsecctx(&resfh, &create->cr_label, create->cr_bmval); in nfsd4_create()
669 do_set_nfs4_acl(rqstp, &resfh, create->cr_acl, in nfsd4_create()
674 fh_dup2(&cstate->current_fh, &resfh); in nfsd4_create()
676 fh_put(&resfh); in nfsd4_create()