Lines Matching refs:current_fh
101 struct dentry *dentry = cstate->current_fh.fh_dentry; in check_attr_support()
102 struct svc_export *exp = cstate->current_fh.fh_export; in check_attr_support()
178 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument
195 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
229 struct svc_fh *current_fh = &cstate->current_fh; in do_open_lookup() local
260 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup()
285 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup()
302 set_change_info(&open->op_cinfo, current_fh); in do_open_lookup()
310 struct svc_fh *current_fh = &cstate->current_fh; in do_open_fhandle() local
320 nfsd4_set_open_owner_reply_cache(cstate, open, current_fh); in do_open_fhandle()
336 status = do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
388 fh_put(&cstate->current_fh); in nfsd4_open()
389 fh_copy_shallow(&cstate->current_fh.fh_handle, in nfsd4_open()
391 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_open()
438 resfh = &cstate->current_fh; in nfsd4_open()
464 if (resfh && resfh != &cstate->current_fh) { in nfsd4_open()
465 fh_dup2(&cstate->current_fh, resfh); in nfsd4_open()
499 u->getfh = &cstate->current_fh; in nfsd4_getfh()
510 fh_put(&cstate->current_fh); in nfsd4_putfh()
511 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen; in nfsd4_putfh()
512 memcpy(&cstate->current_fh.fh_handle.fh_base, putfh->pf_fhval, in nfsd4_putfh()
514 ret = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); in nfsd4_putfh()
517 SET_FH_FLAG(&cstate->current_fh, NFSD4_FH_FOREIGN); in nfsd4_putfh()
530 fh_put(&cstate->current_fh); in nfsd4_putrootfh()
531 status = exp_pseudoroot(rqstp, &cstate->current_fh); in nfsd4_putrootfh()
542 fh_dup2(&cstate->current_fh, &cstate->save_fh); in nfsd4_restorefh()
554 fh_dup2(&cstate->save_fh, &cstate->current_fh); in nfsd4_savefh()
581 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, in nfsd4_access()
600 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, in nfsd4_commit()
616 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_NOP); in nfsd4_create()
628 status = nfsd_symlink(rqstp, &cstate->current_fh, in nfsd4_create()
639 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
650 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
656 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
662 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
669 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
688 fh_unlock(&cstate->current_fh); in nfsd4_create()
689 set_change_info(&create->cr_cinfo, &cstate->current_fh); in nfsd4_create()
690 fh_dup2(&cstate->current_fh, &resfh); in nfsd4_create()
705 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_getattr()
716 getattr->ga_fhp = &cstate->current_fh; in nfsd4_getattr()
727 status = nfsd_link(rqstp, &cstate->current_fh, in nfsd4_link()
730 set_change_info(&link->li_cinfo, &cstate->current_fh); in nfsd4_link()
755 return nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_lookupp()
762 return nfsd_lookup(rqstp, &cstate->current_fh, in nfsd4_lookup()
764 &cstate->current_fh); in nfsd4_lookup()
778 trace_nfsd_read_start(rqstp, &cstate->current_fh, in nfsd4_read()
793 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_read()
803 read->rd_fhp = &cstate->current_fh; in nfsd4_read()
839 readdir->rd_fhp = &cstate->current_fh; in nfsd4_readdir()
848 u->readlink.rl_fhp = &cstate->current_fh; in nfsd4_readlink()
861 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, in nfsd4_remove()
864 fh_unlock(&cstate->current_fh); in nfsd4_remove()
865 set_change_info(&remove->rm_cinfo, &cstate->current_fh); in nfsd4_remove()
880 rename->rn_snamelen, &cstate->current_fh, in nfsd4_rename()
884 set_change_info(&rename->rn_sinfo, &cstate->current_fh); in nfsd4_rename()
898 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_secinfo()
901 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, in nfsd4_secinfo()
906 fh_unlock(&cstate->current_fh); in nfsd4_secinfo()
915 fh_put(&cstate->current_fh); in nfsd4_secinfo()
929 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_secinfo_no_name()
937 u->secinfo_no_name.sin_exp = exp_get(cstate->current_fh.fh_export); in nfsd4_secinfo_no_name()
938 fh_put(&cstate->current_fh); in nfsd4_secinfo_no_name()
966 &cstate->current_fh, &setattr->sa_stateid, in nfsd4_setattr()
973 err = fh_want_write(&cstate->current_fh); in nfsd4_setattr()
984 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, in nfsd4_setattr()
989 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, in nfsd4_setattr()
993 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, in nfsd4_setattr()
996 fh_drop_write(&cstate->current_fh); in nfsd4_setattr()
1015 trace_nfsd_write_start(rqstp, &cstate->current_fh, in nfsd4_write()
1017 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_write()
1030 status = nfsd_vfs_write(rqstp, &cstate->current_fh, nf, in nfsd4_write()
1037 trace_nfsd_write_done(rqstp, &cstate->current_fh, in nfsd4_write()
1059 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_verify_copy()
1097 EX_ISSYNC(cstate->current_fh.fh_export)); in nfsd4_clone()
1274 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_setup_inter_ssc()
1528 memcpy(©->fh, &cstate->current_fh.fh_handle, in nfsd4_copy()
1617 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_copy_notify()
1657 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_fallocate()
1665 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_fallocate()
1716 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_seek()
1764 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in _nfsd4_verify()
1787 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh, in _nfsd4_verify()
1788 cstate->current_fh.fh_export, in _nfsd4_verify()
1789 cstate->current_fh.fh_dentry, in _nfsd4_verify()
1910 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutget() local
1930 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget()
1935 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type); in nfsd4_layoutget()
1971 nfserr = ops->proc_layoutget(d_inode(current_fh->fh_dentry), in nfsd4_layoutget()
1972 current_fh, lgp); in nfsd4_layoutget()
1997 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutcommit() local
2004 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE); in nfsd4_layoutcommit()
2009 ops = nfsd4_layout_verify(current_fh->fh_export, lcp->lc_layout_type); in nfsd4_layoutcommit()
2012 inode = d_inode(current_fh->fh_dentry); in nfsd4_layoutcommit()
2060 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutreturn() local
2063 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP); in nfsd4_layoutreturn()
2068 if (!nfsd4_layout_verify(current_fh->fh_export, lrp->lr_layout_type)) in nfsd4_layoutreturn()
2108 return nfsd_getxattr(rqstp, &cstate->current_fh, in nfsd4_getxattr()
2123 ret = nfsd_setxattr(rqstp, &cstate->current_fh, setxattr->setxa_name, in nfsd4_setxattr()
2128 set_change_info(&setxattr->setxa_cinfo, &cstate->current_fh); in nfsd4_setxattr()
2141 return nfsd_listxattr(rqstp, &cstate->current_fh, in nfsd4_listxattrs()
2155 ret = nfsd_removexattr(rqstp, &cstate->current_fh, in nfsd4_removexattr()
2159 set_change_info(&removexattr->rmxa_cinfo, &cstate->current_fh); in nfsd4_removexattr()
2334 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_proc_compound() local
2347 fh_init(current_fh, NFS4_FHSIZE); in nfsd4_proc_compound()
2390 if (!current_fh->fh_dentry && in nfsd4_proc_compound()
2391 !HAS_FH_FLAG(current_fh, NFSD4_FH_FOREIGN)) { in nfsd4_proc_compound()
2396 } else if (current_fh->fh_export && in nfsd4_proc_compound()
2397 current_fh->fh_export->ex_fslocs.migrated && in nfsd4_proc_compound()
2403 fh_clear_wcc(current_fh); in nfsd4_proc_compound()
2441 if (current_fh->fh_export && in nfsd4_proc_compound()
2443 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
2462 fh_put(current_fh); in nfsd4_proc_compound()