Lines Matching refs:current_fh
99 struct dentry *dentry = cstate->current_fh.fh_dentry; in check_attr_support()
100 struct svc_export *exp = cstate->current_fh.fh_export; in check_attr_support()
176 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument
193 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
227 struct svc_fh *current_fh = &cstate->current_fh; in do_open_lookup() local
258 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup()
283 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup()
300 set_change_info(&open->op_cinfo, current_fh); in do_open_lookup()
308 struct svc_fh *current_fh = &cstate->current_fh; in do_open_fhandle() local
318 nfsd4_set_open_owner_reply_cache(cstate, open, current_fh); in do_open_fhandle()
334 status = do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
386 fh_put(&cstate->current_fh); in nfsd4_open()
387 fh_copy_shallow(&cstate->current_fh.fh_handle, in nfsd4_open()
389 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_open()
436 resfh = &cstate->current_fh; in nfsd4_open()
462 if (resfh && resfh != &cstate->current_fh) { in nfsd4_open()
463 fh_dup2(&cstate->current_fh, resfh); in nfsd4_open()
497 u->getfh = &cstate->current_fh; in nfsd4_getfh()
507 fh_put(&cstate->current_fh); in nfsd4_putfh()
508 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen; in nfsd4_putfh()
509 memcpy(&cstate->current_fh.fh_handle.fh_base, putfh->pf_fhval, in nfsd4_putfh()
511 return fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); in nfsd4_putfh()
520 fh_put(&cstate->current_fh); in nfsd4_putrootfh()
521 status = exp_pseudoroot(rqstp, &cstate->current_fh); in nfsd4_putrootfh()
532 fh_dup2(&cstate->current_fh, &cstate->save_fh); in nfsd4_restorefh()
544 fh_dup2(&cstate->save_fh, &cstate->current_fh); in nfsd4_savefh()
565 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, in nfsd4_access()
585 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, in nfsd4_commit()
600 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_NOP); in nfsd4_create()
612 status = nfsd_symlink(rqstp, &cstate->current_fh, in nfsd4_create()
623 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
634 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
640 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
646 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
653 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
672 fh_unlock(&cstate->current_fh); in nfsd4_create()
673 set_change_info(&create->cr_cinfo, &cstate->current_fh); in nfsd4_create()
674 fh_dup2(&cstate->current_fh, &resfh); in nfsd4_create()
689 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_getattr()
700 getattr->ga_fhp = &cstate->current_fh; in nfsd4_getattr()
711 status = nfsd_link(rqstp, &cstate->current_fh, in nfsd4_link()
714 set_change_info(&link->li_cinfo, &cstate->current_fh); in nfsd4_link()
739 return nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_lookupp()
746 return nfsd_lookup(rqstp, &cstate->current_fh, in nfsd4_lookup()
748 &cstate->current_fh); in nfsd4_lookup()
762 trace_nfsd_read_start(rqstp, &cstate->current_fh, in nfsd4_read()
777 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_read()
787 read->rd_fhp = &cstate->current_fh; in nfsd4_read()
823 readdir->rd_fhp = &cstate->current_fh; in nfsd4_readdir()
832 u->readlink.rl_fhp = &cstate->current_fh; in nfsd4_readlink()
845 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, in nfsd4_remove()
848 fh_unlock(&cstate->current_fh); in nfsd4_remove()
849 set_change_info(&remove->rm_cinfo, &cstate->current_fh); in nfsd4_remove()
864 rename->rn_snamelen, &cstate->current_fh, in nfsd4_rename()
869 set_change_info(&rename->rn_tinfo, &cstate->current_fh); in nfsd4_rename()
882 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_secinfo()
885 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, in nfsd4_secinfo()
890 fh_unlock(&cstate->current_fh); in nfsd4_secinfo()
899 fh_put(&cstate->current_fh); in nfsd4_secinfo()
913 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_secinfo_no_name()
921 u->secinfo_no_name.sin_exp = exp_get(cstate->current_fh.fh_export); in nfsd4_secinfo_no_name()
922 fh_put(&cstate->current_fh); in nfsd4_secinfo_no_name()
950 &cstate->current_fh, &setattr->sa_stateid, in nfsd4_setattr()
957 err = fh_want_write(&cstate->current_fh); in nfsd4_setattr()
968 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, in nfsd4_setattr()
973 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, in nfsd4_setattr()
977 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, in nfsd4_setattr()
980 fh_drop_write(&cstate->current_fh); in nfsd4_setattr()
1000 trace_nfsd_write_start(rqstp, &cstate->current_fh, in nfsd4_write()
1002 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_write()
1016 status = nfsd_vfs_write(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_write()
1022 trace_nfsd_write_done(rqstp, &cstate->current_fh, in nfsd4_write()
1044 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_verify_copy()
1084 EX_ISSYNC(cstate->current_fh.fh_export)); in nfsd4_clone()
1272 memcpy(©->fh, &cstate->current_fh.fh_handle, in nfsd4_copy()
1352 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_fallocate()
1360 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_fallocate()
1411 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_seek()
1459 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in _nfsd4_verify()
1482 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh, in _nfsd4_verify()
1483 cstate->current_fh.fh_export, in _nfsd4_verify()
1484 cstate->current_fh.fh_dentry, in _nfsd4_verify()
1605 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutget() local
1625 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget()
1630 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type); in nfsd4_layoutget()
1666 nfserr = ops->proc_layoutget(d_inode(current_fh->fh_dentry), in nfsd4_layoutget()
1667 current_fh, lgp); in nfsd4_layoutget()
1692 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutcommit() local
1699 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE); in nfsd4_layoutcommit()
1704 ops = nfsd4_layout_verify(current_fh->fh_export, lcp->lc_layout_type); in nfsd4_layoutcommit()
1707 inode = d_inode(current_fh->fh_dentry); in nfsd4_layoutcommit()
1755 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutreturn() local
1758 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP); in nfsd4_layoutreturn()
1763 if (!nfsd4_layout_verify(current_fh->fh_export, lrp->lr_layout_type)) in nfsd4_layoutreturn()
1928 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_proc_compound() local
1941 fh_init(current_fh, NFS4_FHSIZE); in nfsd4_proc_compound()
1982 if (!current_fh->fh_dentry) { in nfsd4_proc_compound()
1987 } else if (current_fh->fh_export->ex_fslocs.migrated && in nfsd4_proc_compound()
1993 fh_clear_wcc(current_fh); in nfsd4_proc_compound()
2032 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
2052 fh_put(current_fh); in nfsd4_proc_compound()