Lines Matching defs:resfh
179 static void nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh)
184 &resfh->fh_handle);
418 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh)
424 *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL);
425 if (!*resfh)
427 fh_init(*resfh, NFS4_FHSIZE);
447 status = nfsd4_create_file(rqstp, current_fh, *resfh, open);
460 open->op_fname, open->op_fnamelen, *resfh);
469 status = nfsd_check_obj_isreg(*resfh);
473 nfsd4_set_open_owner_reply_cache(cstate, open, *resfh);
478 status = do_open_permission(rqstp, *resfh, open, accmode);
531 struct svc_fh *resfh = NULL;
597 status = do_open_lookup(rqstp, cstate, open, &resfh);
613 resfh = &cstate->current_fh;
624 status = nfsd4_process_open2(rqstp, resfh, open);
635 if (resfh && resfh != &cstate->current_fh) {
636 fh_dup2(&cstate->current_fh, resfh);
637 fh_put(resfh);
638 kfree(resfh);
792 struct svc_fh resfh;
796 fh_init(&resfh, NFS4_FHSIZE);
813 create->cr_data, &attrs, &resfh);
824 &attrs, S_IFBLK, rdev, &resfh);
835 &attrs, S_IFCHR, rdev, &resfh);
841 &attrs, S_IFSOCK, 0, &resfh);
847 &attrs, S_IFIFO, 0, &resfh);
854 &attrs, S_IFDIR, 0, &resfh);
869 fh_dup2(&cstate->current_fh, &resfh);
871 fh_put(&resfh);