Lines Matching refs:current_fh
98 struct dentry *dentry = cstate->current_fh.fh_dentry; in check_attr_support()
99 struct svc_export *exp = cstate->current_fh.fh_export; in check_attr_support()
175 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument
192 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
226 struct svc_fh *current_fh = &cstate->current_fh; in do_open_lookup() local
257 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup()
282 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup()
299 set_change_info(&open->op_cinfo, current_fh); in do_open_lookup()
307 struct svc_fh *current_fh = &cstate->current_fh; in do_open_fhandle() local
317 nfsd4_set_open_owner_reply_cache(cstate, open, current_fh); in do_open_fhandle()
333 status = do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
385 fh_put(&cstate->current_fh); in nfsd4_open()
386 fh_copy_shallow(&cstate->current_fh.fh_handle, in nfsd4_open()
388 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_open()
434 resfh = &cstate->current_fh; in nfsd4_open()
460 if (resfh && resfh != &cstate->current_fh) { in nfsd4_open()
461 fh_dup2(&cstate->current_fh, resfh); in nfsd4_open()
495 u->getfh = &cstate->current_fh; in nfsd4_getfh()
505 fh_put(&cstate->current_fh); in nfsd4_putfh()
506 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen; in nfsd4_putfh()
507 memcpy(&cstate->current_fh.fh_handle.fh_base, putfh->pf_fhval, in nfsd4_putfh()
509 return fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); in nfsd4_putfh()
518 fh_put(&cstate->current_fh); in nfsd4_putrootfh()
519 status = exp_pseudoroot(rqstp, &cstate->current_fh); in nfsd4_putrootfh()
530 fh_dup2(&cstate->current_fh, &cstate->save_fh); in nfsd4_restorefh()
542 fh_dup2(&cstate->save_fh, &cstate->current_fh); in nfsd4_savefh()
563 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, in nfsd4_access()
589 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, in nfsd4_commit()
604 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_NOP); in nfsd4_create()
616 status = nfsd_symlink(rqstp, &cstate->current_fh, in nfsd4_create()
627 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
638 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
644 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
650 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
657 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
676 fh_unlock(&cstate->current_fh); in nfsd4_create()
677 set_change_info(&create->cr_cinfo, &cstate->current_fh); in nfsd4_create()
678 fh_dup2(&cstate->current_fh, &resfh); in nfsd4_create()
693 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_getattr()
704 getattr->ga_fhp = &cstate->current_fh; in nfsd4_getattr()
715 status = nfsd_link(rqstp, &cstate->current_fh, in nfsd4_link()
718 set_change_info(&link->li_cinfo, &cstate->current_fh); in nfsd4_link()
743 return nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_lookupp()
750 return nfsd_lookup(rqstp, &cstate->current_fh, in nfsd4_lookup()
752 &cstate->current_fh); in nfsd4_lookup()
766 trace_nfsd_read_start(rqstp, &cstate->current_fh, in nfsd4_read()
781 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_read()
791 read->rd_fhp = &cstate->current_fh; in nfsd4_read()
827 readdir->rd_fhp = &cstate->current_fh; in nfsd4_readdir()
836 u->readlink.rl_fhp = &cstate->current_fh; in nfsd4_readlink()
849 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, in nfsd4_remove()
852 fh_unlock(&cstate->current_fh); in nfsd4_remove()
853 set_change_info(&remove->rm_cinfo, &cstate->current_fh); in nfsd4_remove()
869 rename->rn_snamelen, &cstate->current_fh, in nfsd4_rename()
874 set_change_info(&rename->rn_tinfo, &cstate->current_fh); in nfsd4_rename()
887 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_secinfo()
890 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, in nfsd4_secinfo()
895 fh_unlock(&cstate->current_fh); in nfsd4_secinfo()
904 fh_put(&cstate->current_fh); in nfsd4_secinfo()
918 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_secinfo_no_name()
926 u->secinfo_no_name.sin_exp = exp_get(cstate->current_fh.fh_export); in nfsd4_secinfo_no_name()
927 fh_put(&cstate->current_fh); in nfsd4_secinfo_no_name()
955 &cstate->current_fh, &setattr->sa_stateid, in nfsd4_setattr()
962 err = fh_want_write(&cstate->current_fh); in nfsd4_setattr()
973 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, in nfsd4_setattr()
978 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, in nfsd4_setattr()
982 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, in nfsd4_setattr()
985 fh_drop_write(&cstate->current_fh); in nfsd4_setattr()
1005 trace_nfsd_write_start(rqstp, &cstate->current_fh, in nfsd4_write()
1007 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_write()
1021 status = nfsd_vfs_write(rqstp, &cstate->current_fh, filp, in nfsd4_write()
1027 trace_nfsd_write_done(rqstp, &cstate->current_fh, in nfsd4_write()
1049 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_verify_copy()
1134 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_fallocate()
1142 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, file, in nfsd4_fallocate()
1174 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_seek()
1222 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in _nfsd4_verify()
1245 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh, in _nfsd4_verify()
1246 cstate->current_fh.fh_export, in _nfsd4_verify()
1247 cstate->current_fh.fh_dentry, in _nfsd4_verify()
1368 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutget() local
1388 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget()
1393 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type); in nfsd4_layoutget()
1429 nfserr = ops->proc_layoutget(d_inode(current_fh->fh_dentry), in nfsd4_layoutget()
1430 current_fh, lgp); in nfsd4_layoutget()
1455 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutcommit() local
1462 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE); in nfsd4_layoutcommit()
1467 ops = nfsd4_layout_verify(current_fh->fh_export, lcp->lc_layout_type); in nfsd4_layoutcommit()
1470 inode = d_inode(current_fh->fh_dentry); in nfsd4_layoutcommit()
1518 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutreturn() local
1521 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP); in nfsd4_layoutreturn()
1526 if (!nfsd4_layout_verify(current_fh->fh_export, lrp->lr_layout_type)) in nfsd4_layoutreturn()
1691 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_proc_compound() local
1703 fh_init(current_fh, NFS4_FHSIZE); in nfsd4_proc_compound()
1744 if (!current_fh->fh_dentry) { in nfsd4_proc_compound()
1749 } else if (current_fh->fh_export->ex_fslocs.migrated && in nfsd4_proc_compound()
1755 fh_clear_wcc(current_fh); in nfsd4_proc_compound()
1794 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
1814 fh_put(current_fh); in nfsd4_proc_compound()