Lines Matching refs:current_fh
85 struct dentry *dentry = cstate->current_fh.fh_dentry; in check_attr_support()
86 struct svc_export *exp = cstate->current_fh.fh_export; in check_attr_support()
142 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument
158 return fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
386 struct svc_fh *current_fh = &cstate->current_fh; in do_open_lookup() local
413 status = nfsd4_create_file(rqstp, current_fh, *resfh, open); in do_open_lookup()
425 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup()
431 fh_fill_both_attrs(current_fh); in do_open_lookup()
445 set_change_info(&open->op_cinfo, current_fh); in do_open_lookup()
453 struct svc_fh *current_fh = &cstate->current_fh; in do_open_fhandle() local
462 nfsd4_set_open_owner_reply_cache(cstate, open, current_fh); in do_open_fhandle()
478 return do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
530 fh_put(&cstate->current_fh); in nfsd4_open()
531 fh_copy_shallow(&cstate->current_fh.fh_handle, in nfsd4_open()
533 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_open()
579 resfh = &cstate->current_fh; in nfsd4_open()
601 if (resfh && resfh != &cstate->current_fh) { in nfsd4_open()
602 fh_dup2(&cstate->current_fh, resfh); in nfsd4_open()
636 u->getfh = &cstate->current_fh; in nfsd4_getfh()
647 fh_put(&cstate->current_fh); in nfsd4_putfh()
648 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen; in nfsd4_putfh()
649 memcpy(&cstate->current_fh.fh_handle.fh_raw, putfh->pf_fhval, in nfsd4_putfh()
651 ret = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); in nfsd4_putfh()
654 SET_FH_FLAG(&cstate->current_fh, NFSD4_FH_FOREIGN); in nfsd4_putfh()
665 fh_put(&cstate->current_fh); in nfsd4_putrootfh()
667 return exp_pseudoroot(rqstp, &cstate->current_fh); in nfsd4_putrootfh()
677 fh_dup2(&cstate->current_fh, &cstate->save_fh); in nfsd4_restorefh()
689 fh_dup2(&cstate->save_fh, &cstate->current_fh); in nfsd4_savefh()
716 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, in nfsd4_access()
735 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, in nfsd4_commit()
755 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_NOP); in nfsd4_create()
768 status = nfsd_symlink(rqstp, &cstate->current_fh, in nfsd4_create()
779 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
790 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
796 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
802 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
809 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
825 set_change_info(&create->cr_cinfo, &cstate->current_fh); in nfsd4_create()
826 fh_dup2(&cstate->current_fh, &resfh); in nfsd4_create()
842 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_getattr()
853 getattr->ga_fhp = &cstate->current_fh; in nfsd4_getattr()
864 status = nfsd_link(rqstp, &cstate->current_fh, in nfsd4_link()
867 set_change_info(&link->li_cinfo, &cstate->current_fh); in nfsd4_link()
892 return nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_lookupp()
899 return nfsd_lookup(rqstp, &cstate->current_fh, in nfsd4_lookup()
901 &cstate->current_fh); in nfsd4_lookup()
913 trace_nfsd_read_start(rqstp, &cstate->current_fh, in nfsd4_read()
934 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_read()
944 read->rd_fhp = &cstate->current_fh; in nfsd4_read()
980 readdir->rd_fhp = &cstate->current_fh; in nfsd4_readdir()
989 u->readlink.rl_fhp = &cstate->current_fh; in nfsd4_readlink()
1002 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, in nfsd4_remove()
1005 set_change_info(&remove->rm_cinfo, &cstate->current_fh); in nfsd4_remove()
1019 rename->rn_snamelen, &cstate->current_fh, in nfsd4_rename()
1023 set_change_info(&rename->rn_sinfo, &cstate->current_fh); in nfsd4_rename()
1037 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_secinfo()
1040 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, in nfsd4_secinfo()
1053 fh_put(&cstate->current_fh); in nfsd4_secinfo()
1067 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_secinfo_no_name()
1075 u->secinfo_no_name.sin_exp = exp_get(cstate->current_fh.fh_export); in nfsd4_secinfo_no_name()
1076 fh_put(&cstate->current_fh); in nfsd4_secinfo_no_name()
1109 &cstate->current_fh, &setattr->sa_stateid, in nfsd4_setattr()
1116 err = fh_want_write(&cstate->current_fh); in nfsd4_setattr()
1126 inode = cstate->current_fh.fh_dentry->d_inode; in nfsd4_setattr()
1132 status = nfsd_setattr(rqstp, &cstate->current_fh, &attrs, in nfsd4_setattr()
1138 fh_drop_write(&cstate->current_fh); in nfsd4_setattr()
1158 trace_nfsd_write_start(rqstp, &cstate->current_fh, in nfsd4_write()
1160 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_write()
1172 status = nfsd_vfs_write(rqstp, &cstate->current_fh, nf, in nfsd4_write()
1179 trace_nfsd_write_done(rqstp, &cstate->current_fh, in nfsd4_write()
1201 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_verify_copy()
1239 EX_ISSYNC(cstate->current_fh.fh_export)); in nfsd4_clone()
1492 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_setup_inter_ssc()
1816 memcpy(©->fh, &cstate->current_fh.fh_handle, in nfsd4_copy()
1908 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_copy_notify()
1948 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_fallocate()
1956 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_fallocate()
2007 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_seek()
2055 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in _nfsd4_verify()
2078 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh, in _nfsd4_verify()
2079 cstate->current_fh.fh_export, in _nfsd4_verify()
2080 cstate->current_fh.fh_dentry, in _nfsd4_verify()
2201 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutget() local
2221 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget()
2226 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type); in nfsd4_layoutget()
2262 nfserr = ops->proc_layoutget(d_inode(current_fh->fh_dentry), in nfsd4_layoutget()
2263 current_fh, lgp); in nfsd4_layoutget()
2288 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutcommit() local
2295 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE); in nfsd4_layoutcommit()
2300 ops = nfsd4_layout_verify(current_fh->fh_export, lcp->lc_layout_type); in nfsd4_layoutcommit()
2303 inode = d_inode(current_fh->fh_dentry); in nfsd4_layoutcommit()
2351 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutreturn() local
2354 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP); in nfsd4_layoutreturn()
2359 if (!nfsd4_layout_verify(current_fh->fh_export, lrp->lr_layout_type)) in nfsd4_layoutreturn()
2399 return nfsd_getxattr(rqstp, &cstate->current_fh, in nfsd4_getxattr()
2414 ret = nfsd_setxattr(rqstp, &cstate->current_fh, setxattr->setxa_name, in nfsd4_setxattr()
2419 set_change_info(&setxattr->setxa_cinfo, &cstate->current_fh); in nfsd4_setxattr()
2432 return nfsd_listxattr(rqstp, &cstate->current_fh, in nfsd4_listxattrs()
2446 ret = nfsd_removexattr(rqstp, &cstate->current_fh, in nfsd4_removexattr()
2450 set_change_info(&removexattr->rmxa_cinfo, &cstate->current_fh); in nfsd4_removexattr()
2606 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_proc_compound() local
2623 fh_init(current_fh, NFS4_FHSIZE); in nfsd4_proc_compound()
2674 if (!current_fh->fh_dentry && in nfsd4_proc_compound()
2675 !HAS_FH_FLAG(current_fh, NFSD4_FH_FOREIGN)) { in nfsd4_proc_compound()
2680 } else if (current_fh->fh_export && in nfsd4_proc_compound()
2681 current_fh->fh_export->ex_fslocs.migrated && in nfsd4_proc_compound()
2687 fh_clear_pre_post_attrs(current_fh); in nfsd4_proc_compound()
2725 if (current_fh->fh_export && in nfsd4_proc_compound()
2727 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
2746 fh_put(current_fh); in nfsd4_proc_compound()