Lines Matching refs:resfh
179 …ner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh) in nfsd4_set_open_owner_reply_cache() argument
184 &resfh->fh_handle); in nfsd4_set_open_owner_reply_cache()
384 …c_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) in do_open_lookup() argument
390 *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL); in do_open_lookup()
391 if (!*resfh) in do_open_lookup()
393 fh_init(*resfh, NFS4_FHSIZE); in do_open_lookup()
413 status = nfsd4_create_file(rqstp, current_fh, *resfh, open); in do_open_lookup()
426 open->op_fname, open->op_fnamelen, *resfh); in do_open_lookup()
435 status = nfsd_check_obj_isreg(*resfh); in do_open_lookup()
439 nfsd4_set_open_owner_reply_cache(cstate, open, *resfh); in do_open_lookup()
444 status = do_open_permission(rqstp, *resfh, open, accmode); in do_open_lookup()
497 struct svc_fh *resfh = NULL; in nfsd4_open() local
563 status = do_open_lookup(rqstp, cstate, open, &resfh); in nfsd4_open()
579 resfh = &cstate->current_fh; in nfsd4_open()
590 status = nfsd4_process_open2(rqstp, resfh, open); in nfsd4_open()
601 if (resfh && resfh != &cstate->current_fh) { in nfsd4_open()
602 fh_dup2(&cstate->current_fh, resfh); in nfsd4_open()
603 fh_put(resfh); in nfsd4_open()
604 kfree(resfh); in nfsd4_open()
758 struct svc_fh resfh; in nfsd4_create() local
762 fh_init(&resfh, NFS4_FHSIZE); in nfsd4_create()
779 create->cr_data, &attrs, &resfh); in nfsd4_create()
790 &attrs, S_IFBLK, rdev, &resfh); in nfsd4_create()
801 &attrs, S_IFCHR, rdev, &resfh); in nfsd4_create()
807 &attrs, S_IFSOCK, 0, &resfh); in nfsd4_create()
813 &attrs, S_IFIFO, 0, &resfh); in nfsd4_create()
820 &attrs, S_IFDIR, 0, &resfh); in nfsd4_create()
835 fh_dup2(&cstate->current_fh, &resfh); in nfsd4_create()
837 fh_put(&resfh); in nfsd4_create()