Lines Matching refs:resfh
54 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument
56 struct inode *inode = d_inode(resfh->fh_dentry); in nfsd4_security_inode_setsecctx()
60 status = security_inode_setsecctx(resfh->fh_dentry, in nfsd4_security_inode_setsecctx()
76 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) in nfsd4_security_inode_setsecctx() argument
215 …ner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh) in nfsd4_set_open_owner_reply_cache() argument
220 &resfh->fh_handle); in nfsd4_set_open_owner_reply_cache()
224 …c_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) in do_open_lookup() argument
230 *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL); in do_open_lookup()
231 if (!*resfh) in do_open_lookup()
233 fh_init(*resfh, NFS4_FHSIZE); in do_open_lookup()
259 *resfh, open->op_createmode, in do_open_lookup()
265 nfsd4_security_inode_setsecctx(*resfh, &open->op_label, open->op_bmval); in do_open_lookup()
283 open->op_fname.data, open->op_fname.len, *resfh); in do_open_lookup()
286 status = nfsd_check_obj_isreg(*resfh); in do_open_lookup()
291 do_set_nfs4_acl(rqstp, *resfh, open->op_acl, open->op_bmval); in do_open_lookup()
293 nfsd4_set_open_owner_reply_cache(cstate, open, *resfh); in do_open_lookup()
298 status = do_open_permission(rqstp, *resfh, open, accmode); in do_open_lookup()
354 struct svc_fh *resfh = NULL; in nfsd4_open() local
418 status = do_open_lookup(rqstp, cstate, open, &resfh); in nfsd4_open()
434 resfh = &cstate->current_fh; in nfsd4_open()
453 status = nfsd4_process_open2(rqstp, resfh, open); in nfsd4_open()
460 if (resfh && resfh != &cstate->current_fh) { in nfsd4_open()
461 fh_dup2(&cstate->current_fh, resfh); in nfsd4_open()
462 fh_put(resfh); in nfsd4_open()
463 kfree(resfh); in nfsd4_open()
598 struct svc_fh resfh; in nfsd4_create() local
602 fh_init(&resfh, NFS4_FHSIZE); in nfsd4_create()
618 create->cr_data, &resfh); in nfsd4_create()
629 &create->cr_iattr, S_IFBLK, rdev, &resfh); in nfsd4_create()
640 &create->cr_iattr,S_IFCHR, rdev, &resfh); in nfsd4_create()
646 &create->cr_iattr, S_IFSOCK, 0, &resfh); in nfsd4_create()
652 &create->cr_iattr, S_IFIFO, 0, &resfh); in nfsd4_create()
659 &create->cr_iattr, S_IFDIR, 0, &resfh); in nfsd4_create()
670 nfsd4_security_inode_setsecctx(&resfh, &create->cr_label, create->cr_bmval); in nfsd4_create()
673 do_set_nfs4_acl(rqstp, &resfh, create->cr_acl, in nfsd4_create()
678 fh_dup2(&cstate->current_fh, &resfh); in nfsd4_create()
680 fh_put(&resfh); in nfsd4_create()