Lines Matching defs:current_fh

101 	struct dentry *dentry = cstate->current_fh.fh_dentry;
102 struct svc_export *exp = cstate->current_fh.fh_export;
178 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode)
195 status = fh_verify(rqstp, current_fh, S_IFREG, accmode);
229 struct svc_fh *current_fh = &cstate->current_fh;
260 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data,
285 status = nfsd_lookup(rqstp, current_fh,
302 set_change_info(&open->op_cinfo, current_fh);
310 struct svc_fh *current_fh = &cstate->current_fh;
320 nfsd4_set_open_owner_reply_cache(cstate, open, current_fh);
336 status = do_open_permission(rqstp, current_fh, open, accmode);
388 fh_put(&cstate->current_fh);
389 fh_copy_shallow(&cstate->current_fh.fh_handle,
391 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP);
438 resfh = &cstate->current_fh;
464 if (resfh && resfh != &cstate->current_fh) {
465 fh_dup2(&cstate->current_fh, resfh);
499 u->getfh = &cstate->current_fh;
510 fh_put(&cstate->current_fh);
511 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen;
512 memcpy(&cstate->current_fh.fh_handle.fh_base, putfh->pf_fhval,
514 ret = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS);
517 SET_FH_FLAG(&cstate->current_fh, NFSD4_FH_FOREIGN);
530 fh_put(&cstate->current_fh);
531 status = exp_pseudoroot(rqstp, &cstate->current_fh);
542 fh_dup2(&cstate->current_fh, &cstate->save_fh);
554 fh_dup2(&cstate->save_fh, &cstate->current_fh);
581 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access,
600 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset,
616 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_NOP);
628 status = nfsd_symlink(rqstp, &cstate->current_fh,
639 status = nfsd_create(rqstp, &cstate->current_fh,
650 status = nfsd_create(rqstp, &cstate->current_fh,
656 status = nfsd_create(rqstp, &cstate->current_fh,
662 status = nfsd_create(rqstp, &cstate->current_fh,
669 status = nfsd_create(rqstp, &cstate->current_fh,
688 fh_unlock(&cstate->current_fh);
689 set_change_info(&create->cr_cinfo, &cstate->current_fh);
690 fh_dup2(&cstate->current_fh, &resfh);
705 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP);
716 getattr->ga_fhp = &cstate->current_fh;
727 status = nfsd_link(rqstp, &cstate->current_fh,
730 set_change_info(&link->li_cinfo, &cstate->current_fh);
755 return nfsd4_do_lookupp(rqstp, &cstate->current_fh);
762 return nfsd_lookup(rqstp, &cstate->current_fh,
764 &cstate->current_fh);
778 trace_nfsd_read_start(rqstp, &cstate->current_fh,
793 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh,
803 read->rd_fhp = &cstate->current_fh;
839 readdir->rd_fhp = &cstate->current_fh;
848 u->readlink.rl_fhp = &cstate->current_fh;
861 status = nfsd_unlink(rqstp, &cstate->current_fh, 0,
864 fh_unlock(&cstate->current_fh);
865 set_change_info(&remove->rm_cinfo, &cstate->current_fh);
880 rename->rn_snamelen, &cstate->current_fh,
885 set_change_info(&rename->rn_tinfo, &cstate->current_fh);
898 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC);
901 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh,
906 fh_unlock(&cstate->current_fh);
915 fh_put(&cstate->current_fh);
929 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh);
937 u->secinfo_no_name.sin_exp = exp_get(cstate->current_fh.fh_export);
938 fh_put(&cstate->current_fh);
966 &cstate->current_fh, &setattr->sa_stateid,
973 err = fh_want_write(&cstate->current_fh);
984 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh,
989 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh,
993 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr,
996 fh_drop_write(&cstate->current_fh);
1016 trace_nfsd_write_start(rqstp, &cstate->current_fh,
1018 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh,
1031 status = nfsd_vfs_write(rqstp, &cstate->current_fh, nf,
1038 trace_nfsd_write_done(rqstp, &cstate->current_fh,
1060 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh,
1100 EX_ISSYNC(cstate->current_fh.fh_export));
1270 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh,
1518 memcpy(&copy->fh, &cstate->current_fh.fh_handle,
1607 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh,
1647 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh,
1655 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, nf->nf_file,
1706 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh,
1754 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP);
1777 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh,
1778 cstate->current_fh.fh_export,
1779 cstate->current_fh.fh_dentry,
1900 struct svc_fh *current_fh = &cstate->current_fh;
1920 nfserr = fh_verify(rqstp, current_fh, 0, accmode);
1925 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type);
1961 nfserr = ops->proc_layoutget(d_inode(current_fh->fh_dentry),
1962 current_fh, lgp);
1987 struct svc_fh *current_fh = &cstate->current_fh;
1994 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE);
1999 ops = nfsd4_layout_verify(current_fh->fh_export, lcp->lc_layout_type);
2002 inode = d_inode(current_fh->fh_dentry);
2050 struct svc_fh *current_fh = &cstate->current_fh;
2053 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP);
2058 if (!nfsd4_layout_verify(current_fh->fh_export, lrp->lr_layout_type))
2098 return nfsd_getxattr(rqstp, &cstate->current_fh,
2113 ret = nfsd_setxattr(rqstp, &cstate->current_fh, setxattr->setxa_name,
2118 set_change_info(&setxattr->setxa_cinfo, &cstate->current_fh);
2131 return nfsd_listxattr(rqstp, &cstate->current_fh,
2145 ret = nfsd_removexattr(rqstp, &cstate->current_fh,
2149 set_change_info(&removexattr->rmxa_cinfo, &cstate->current_fh);
2324 struct svc_fh *current_fh = &cstate->current_fh;
2337 fh_init(current_fh, NFS4_FHSIZE);
2380 if (!current_fh->fh_dentry &&
2381 !HAS_FH_FLAG(current_fh, NFSD4_FH_FOREIGN)) {
2386 } else if (current_fh->fh_export &&
2387 current_fh->fh_export->ex_fslocs.migrated &&
2393 fh_clear_wcc(current_fh);
2431 if (current_fh->fh_export &&
2433 op->status = check_nfsd_access(current_fh->fh_export, rqstp);
2452 fh_put(current_fh);