Lines Matching refs:current_fh
97 struct dentry *dentry = cstate->current_fh.fh_dentry; in check_attr_support()
188 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument
205 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
239 struct svc_fh *current_fh = &cstate->current_fh; in do_open_lookup() local
269 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup()
293 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup()
310 set_change_info(&open->op_cinfo, current_fh); in do_open_lookup()
318 struct svc_fh *current_fh = &cstate->current_fh; in do_open_fhandle() local
328 nfsd4_set_open_owner_reply_cache(cstate, open, current_fh); in do_open_fhandle()
344 status = do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
394 fh_put(&cstate->current_fh); in nfsd4_open()
395 fh_copy_shallow(&cstate->current_fh.fh_handle, in nfsd4_open()
397 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_open()
442 resfh = &cstate->current_fh; in nfsd4_open()
466 if (resfh && resfh != &cstate->current_fh) { in nfsd4_open()
467 fh_dup2(&cstate->current_fh, resfh); in nfsd4_open()
501 if (!cstate->current_fh.fh_dentry) in nfsd4_getfh()
504 *getfh = &cstate->current_fh; in nfsd4_getfh()
512 fh_put(&cstate->current_fh); in nfsd4_putfh()
513 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen; in nfsd4_putfh()
514 memcpy(&cstate->current_fh.fh_handle.fh_base, putfh->pf_fhval, in nfsd4_putfh()
516 return fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); in nfsd4_putfh()
525 fh_put(&cstate->current_fh); in nfsd4_putrootfh()
526 status = exp_pseudoroot(rqstp, &cstate->current_fh); in nfsd4_putrootfh()
537 fh_dup2(&cstate->current_fh, &cstate->save_fh); in nfsd4_restorefh()
549 if (!cstate->current_fh.fh_dentry) in nfsd4_savefh()
552 fh_dup2(&cstate->save_fh, &cstate->current_fh); in nfsd4_savefh()
571 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, in nfsd4_access()
594 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, in nfsd4_commit()
608 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, in nfsd4_create()
620 status = nfsd_symlink(rqstp, &cstate->current_fh, in nfsd4_create()
630 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()
652 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
659 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
678 fh_unlock(&cstate->current_fh); in nfsd4_create()
679 set_change_info(&create->cr_cinfo, &cstate->current_fh); in nfsd4_create()
680 fh_dup2(&cstate->current_fh, &resfh); in nfsd4_create()
692 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_getattr()
703 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()
786 read->rd_fhp = &cstate->current_fh; in nfsd4_read()
811 readdir->rd_fhp = &cstate->current_fh; in nfsd4_readdir()
820 readlink->rl_fhp = &cstate->current_fh; in nfsd4_readlink()
832 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, in nfsd4_remove()
835 fh_unlock(&cstate->current_fh); in nfsd4_remove()
836 set_change_info(&remove->rm_cinfo, &cstate->current_fh); in nfsd4_remove()
853 rename->rn_snamelen, &cstate->current_fh, in nfsd4_rename()
857 set_change_info(&rename->rn_sinfo, &cstate->current_fh); in nfsd4_rename()
872 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_secinfo()
875 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, in nfsd4_secinfo()
880 fh_unlock(&cstate->current_fh); in nfsd4_secinfo()
889 fh_put(&cstate->current_fh); in nfsd4_secinfo()
903 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_secinfo_no_name()
911 sin->sin_exp = exp_get(cstate->current_fh.fh_export); in nfsd4_secinfo_no_name()
912 fh_put(&cstate->current_fh); in nfsd4_secinfo_no_name()
931 err = fh_want_write(&cstate->current_fh); in nfsd4_setattr()
942 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, in nfsd4_setattr()
947 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, in nfsd4_setattr()
951 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, in nfsd4_setattr()
954 fh_drop_write(&cstate->current_fh); in nfsd4_setattr()
1003 status = nfsd_vfs_write(rqstp, &cstate->current_fh, filp, in nfsd4_write()
1028 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, file, in nfsd4_fallocate()
1107 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in _nfsd4_verify()
1130 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh, in _nfsd4_verify()
1131 cstate->current_fh.fh_export, in _nfsd4_verify()
1132 cstate->current_fh.fh_dentry, in _nfsd4_verify()
1244 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutget() local
1264 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget()
1269 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type); in nfsd4_layoutget()
1305 nfserr = ops->proc_layoutget(d_inode(current_fh->fh_dentry), in nfsd4_layoutget()
1306 current_fh, lgp); in nfsd4_layoutget()
1325 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutcommit() local
1332 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE); in nfsd4_layoutcommit()
1337 ops = nfsd4_layout_verify(current_fh->fh_export, lcp->lc_layout_type); in nfsd4_layoutcommit()
1340 inode = d_inode(current_fh->fh_dentry); in nfsd4_layoutcommit()
1388 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_layoutreturn() local
1391 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP); in nfsd4_layoutreturn()
1396 if (!nfsd4_layout_verify(current_fh->fh_export, lrp->lr_layout_type)) in nfsd4_layoutreturn()
1604 struct svc_fh *current_fh = &cstate->current_fh; in nfsd4_proc_compound() local
1616 fh_init(current_fh, NFS4_FHSIZE); in nfsd4_proc_compound()
1657 if (!current_fh->fh_dentry) { in nfsd4_proc_compound()
1662 } else if (current_fh->fh_export->ex_fslocs.migrated && in nfsd4_proc_compound()
1668 fh_clear_wcc(current_fh); in nfsd4_proc_compound()
1701 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
1729 fh_put(current_fh); in nfsd4_proc_compound()