Lines Matching defs:resfh
57 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval)
59 struct inode *inode = d_inode(resfh->fh_dentry);
63 status = security_inode_setsecctx(resfh->fh_dentry,
79 nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval)
218 static void nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh)
223 &resfh->fh_handle);
227 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh)
233 *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL);
234 if (!*resfh)
236 fh_init(*resfh, NFS4_FHSIZE);
262 *resfh, open->op_createmode,
268 nfsd4_security_inode_setsecctx(*resfh, &open->op_label, open->op_bmval);
286 open->op_fname.data, open->op_fname.len, *resfh);
289 status = nfsd_check_obj_isreg(*resfh);
294 do_set_nfs4_acl(rqstp, *resfh, open->op_acl, open->op_bmval);
296 nfsd4_set_open_owner_reply_cache(cstate, open, *resfh);
301 status = do_open_permission(rqstp, *resfh, open, accmode);
357 struct svc_fh *resfh = NULL;
421 status = do_open_lookup(rqstp, cstate, open, &resfh);
438 resfh = &cstate->current_fh;
457 status = nfsd4_process_open2(rqstp, resfh, open);
464 if (resfh && resfh != &cstate->current_fh) {
465 fh_dup2(&cstate->current_fh, resfh);
466 fh_put(resfh);
467 kfree(resfh);
610 struct svc_fh resfh;
614 fh_init(&resfh, NFS4_FHSIZE);
630 create->cr_data, &resfh);
641 &create->cr_iattr, S_IFBLK, rdev, &resfh);
652 &create->cr_iattr,S_IFCHR, rdev, &resfh);
658 &create->cr_iattr, S_IFSOCK, 0, &resfh);
664 &create->cr_iattr, S_IFIFO, 0, &resfh);
671 &create->cr_iattr, S_IFDIR, 0, &resfh);
682 nfsd4_security_inode_setsecctx(&resfh, &create->cr_label, create->cr_bmval);
685 do_set_nfs4_acl(rqstp, &resfh, create->cr_acl,
690 fh_dup2(&cstate->current_fh, &resfh);
692 fh_put(&resfh);