Lines Matching refs:current_fh
113 struct dentry *dentry = cstate->current_fh.fh_dentry; in check_attr_support()
114 struct svc_export *exp = cstate->current_fh.fh_export; in check_attr_support()
190 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument
207 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
241 struct svc_fh *current_fh = &cstate->current_fh; in do_open_lookup() local
272 status = do_nfsd_create(rqstp, current_fh, open->op_fname, in do_open_lookup()
297 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup()
314 set_change_info(&open->op_cinfo, current_fh); in do_open_lookup()
322 struct svc_fh *current_fh = &cstate->current_fh; in do_open_fhandle() local
332 nfsd4_set_open_owner_reply_cache(cstate, open, current_fh); in do_open_fhandle()
348 status = do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
399 fh_put(&cstate->current_fh); in nfsd4_open()
400 fh_copy_shallow(&cstate->current_fh.fh_handle, in nfsd4_open()
402 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_open()
448 resfh = &cstate->current_fh; in nfsd4_open()
474 if (resfh && resfh != &cstate->current_fh) { in nfsd4_open()
475 fh_dup2(&cstate->current_fh, resfh); in nfsd4_open()
509 u->getfh = &cstate->current_fh; in nfsd4_getfh()
520 fh_put(&cstate->current_fh); in nfsd4_putfh()
521 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen; in nfsd4_putfh()
522 memcpy(&cstate->current_fh.fh_handle.fh_base, putfh->pf_fhval, in nfsd4_putfh()
524 ret = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); in nfsd4_putfh()
527 SET_FH_FLAG(&cstate->current_fh, NFSD4_FH_FOREIGN); in nfsd4_putfh()
540 fh_put(&cstate->current_fh); in nfsd4_putrootfh()
541 status = exp_pseudoroot(rqstp, &cstate->current_fh); in nfsd4_putrootfh()
552 fh_dup2(&cstate->current_fh, &cstate->save_fh); in nfsd4_restorefh()
564 fh_dup2(&cstate->save_fh, &cstate->current_fh); in nfsd4_savefh()
591 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, in nfsd4_access()
610 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, in nfsd4_commit()
626 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_NOP); in nfsd4_create()
638 status = nfsd_symlink(rqstp, &cstate->current_fh, in nfsd4_create()
649 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
660 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
666 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
672 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
679 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
698 fh_unlock(&cstate->current_fh); in nfsd4_create()
699 set_change_info(&create->cr_cinfo, &cstate->current_fh); in nfsd4_create()
700 fh_dup2(&cstate->current_fh, &resfh); in nfsd4_create()
715 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_getattr()
726 getattr->ga_fhp = &cstate->current_fh; in nfsd4_getattr()
737 status = nfsd_link(rqstp, &cstate->current_fh, in nfsd4_link()
740 set_change_info(&link->li_cinfo, &cstate->current_fh); in nfsd4_link()
765 return nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_lookupp()
772 return nfsd_lookup(rqstp, &cstate->current_fh, in nfsd4_lookup()
774 &cstate->current_fh); in nfsd4_lookup()
788 trace_nfsd_read_start(rqstp, &cstate->current_fh, in nfsd4_read()
803 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_read()
813 read->rd_fhp = &cstate->current_fh; in nfsd4_read()
849 readdir->rd_fhp = &cstate->current_fh; in nfsd4_readdir()
858 u->readlink.rl_fhp = &cstate->current_fh; in nfsd4_readlink()
871 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, in nfsd4_remove()
874 fh_unlock(&cstate->current_fh); in nfsd4_remove()
875 set_change_info(&remove->rm_cinfo, &cstate->current_fh); in nfsd4_remove()
890 rename->rn_snamelen, &cstate->current_fh, in nfsd4_rename()
894 set_change_info(&rename->rn_sinfo, &cstate->current_fh); in nfsd4_rename()
908 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_secinfo()
911 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, in nfsd4_secinfo()
916 fh_unlock(&cstate->current_fh); in nfsd4_secinfo()
925 fh_put(&cstate->current_fh); in nfsd4_secinfo()
939 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_secinfo_no_name()
947 u->secinfo_no_name.sin_exp = exp_get(cstate->current_fh.fh_export); in nfsd4_secinfo_no_name()
948 fh_put(&cstate->current_fh); in nfsd4_secinfo_no_name()
976 &cstate->current_fh, &setattr->sa_stateid, in nfsd4_setattr()
983 err = fh_want_write(&cstate->current_fh); in nfsd4_setattr()
994 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, in nfsd4_setattr()
999 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, in nfsd4_setattr()
1003 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, in nfsd4_setattr()
1006 fh_drop_write(&cstate->current_fh); in nfsd4_setattr()
1025 trace_nfsd_write_start(rqstp, &cstate->current_fh, in nfsd4_write()
1027 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_write()
1040 status = nfsd_vfs_write(rqstp, &cstate->current_fh, nf, in nfsd4_write()
1047 trace_nfsd_write_done(rqstp, &cstate->current_fh, in nfsd4_write()
1069 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_verify_copy()
1107 EX_ISSYNC(cstate->current_fh.fh_export)); in nfsd4_clone()
1373 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_setup_inter_ssc()
1674 memcpy(©->fh, &cstate->current_fh.fh_handle, in nfsd4_copy()
1761 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_copy_notify()
1801 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_fallocate()
1809 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_fallocate()
1860 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_seek()
1908 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in _nfsd4_verify()
1931 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh, in _nfsd4_verify()
1932 cstate->current_fh.fh_export, in _nfsd4_verify()
1933 cstate->current_fh.fh_dentry, in _nfsd4_verify()
2054 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutget() local
2074 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget()
2079 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type); in nfsd4_layoutget()
2115 nfserr = ops->proc_layoutget(d_inode(current_fh->fh_dentry), in nfsd4_layoutget()
2116 current_fh, lgp); in nfsd4_layoutget()
2141 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutcommit() local
2148 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE); in nfsd4_layoutcommit()
2153 ops = nfsd4_layout_verify(current_fh->fh_export, lcp->lc_layout_type); in nfsd4_layoutcommit()
2156 inode = d_inode(current_fh->fh_dentry); in nfsd4_layoutcommit()
2204 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutreturn() local
2207 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP); in nfsd4_layoutreturn()
2212 if (!nfsd4_layout_verify(current_fh->fh_export, lrp->lr_layout_type)) in nfsd4_layoutreturn()
2252 return nfsd_getxattr(rqstp, &cstate->current_fh, in nfsd4_getxattr()
2267 ret = nfsd_setxattr(rqstp, &cstate->current_fh, setxattr->setxa_name, in nfsd4_setxattr()
2272 set_change_info(&setxattr->setxa_cinfo, &cstate->current_fh); in nfsd4_setxattr()
2285 return nfsd_listxattr(rqstp, &cstate->current_fh, in nfsd4_listxattrs()
2299 ret = nfsd_removexattr(rqstp, &cstate->current_fh, in nfsd4_removexattr()
2303 set_change_info(&removexattr->rmxa_cinfo, &cstate->current_fh); in nfsd4_removexattr()
2459 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_proc_compound() local
2476 fh_init(current_fh, NFS4_FHSIZE); in nfsd4_proc_compound()
2519 if (!current_fh->fh_dentry && in nfsd4_proc_compound()
2520 !HAS_FH_FLAG(current_fh, NFSD4_FH_FOREIGN)) { in nfsd4_proc_compound()
2525 } else if (current_fh->fh_export && in nfsd4_proc_compound()
2526 current_fh->fh_export->ex_fslocs.migrated && in nfsd4_proc_compound()
2532 fh_clear_wcc(current_fh); in nfsd4_proc_compound()
2570 if (current_fh->fh_export && in nfsd4_proc_compound()
2572 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
2591 fh_put(current_fh); in nfsd4_proc_compound()