• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/nfsd/

Lines Matching refs:current_fh

60 	struct dentry *dentry = cstate->current_fh.fh_dentry;
151 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode)
166 status = fh_verify(rqstp, current_fh, S_IFREG, accmode);
172 do_open_lookup(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open)
187 status = nfsd_create_v3(rqstp, current_fh, open->op_fname.data,
202 status = nfsd_lookup(rqstp, current_fh,
204 fh_unlock(current_fh);
212 set_change_info(&open->op_cinfo, current_fh);
213 fh_dup2(current_fh, &resfh);
219 status = do_open_permission(rqstp, current_fh, open,
228 do_open_fhandle(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open)
244 &current_fh->fh_handle);
249 status = do_open_permission(rqstp, current_fh, open,
290 fh_put(&cstate->current_fh);
291 fh_copy_shallow(&cstate->current_fh.fh_handle,
293 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP);
325 status = do_open_lookup(rqstp, &cstate->current_fh,
338 status = do_open_fhandle(rqstp, &cstate->current_fh,
360 status = nfsd4_process_open2(rqstp, &cstate->current_fh, open);
377 if (!cstate->current_fh.fh_dentry)
380 *getfh = &cstate->current_fh;
388 fh_put(&cstate->current_fh);
389 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen;
390 memcpy(&cstate->current_fh.fh_handle.fh_base, putfh->pf_fhval,
392 return fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP);
401 fh_put(&cstate->current_fh);
402 status = exp_pseudoroot(rqstp, &cstate->current_fh);
413 fh_dup2(&cstate->current_fh, &cstate->save_fh);
421 if (!cstate->current_fh.fh_dentry)
424 fh_dup2(&cstate->save_fh, &cstate->current_fh);
439 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access,
453 status = nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset,
470 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR,
493 status = nfsd_symlink(rqstp, &cstate->current_fh,
504 status = nfsd_create(rqstp, &cstate->current_fh,
514 status = nfsd_create(rqstp, &cstate->current_fh,
520 status = nfsd_create(rqstp, &cstate->current_fh,
526 status = nfsd_create(rqstp, &cstate->current_fh,
533 status = nfsd_create(rqstp, &cstate->current_fh,
549 fh_unlock(&cstate->current_fh);
550 set_change_info(&create->cr_cinfo, &cstate->current_fh);
551 fh_dup2(&cstate->current_fh, &resfh);
563 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP);
574 getattr->ga_fhp = &cstate->current_fh;
586 status = nfsd_link(rqstp, &cstate->current_fh,
589 set_change_info(&link->li_cinfo, &cstate->current_fh);
604 if (tmp_fh.fh_dentry == cstate->current_fh.fh_dentry) {
609 return nfsd_lookup(rqstp, &cstate->current_fh,
610 "..", 2, &cstate->current_fh);
617 return nfsd_lookup(rqstp, &cstate->current_fh,
619 &cstate->current_fh);
647 read->rd_fhp = &cstate->current_fh;
672 readdir->rd_fhp = &cstate->current_fh;
681 readlink->rl_fhp = &cstate->current_fh;
693 status = nfsd_unlink(rqstp, &cstate->current_fh, 0,
698 fh_unlock(&cstate->current_fh);
699 set_change_info(&remove->rm_cinfo, &cstate->current_fh);
716 rename->rn_snamelen, &cstate->current_fh,
720 * by NFSv4. both save_fh and current_fh have been verified.. */
725 S_ISDIR(cstate->current_fh.fh_dentry->d_inode->i_mode)))
731 set_change_info(&rename->rn_sinfo, &cstate->current_fh);
747 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh,
777 status = mnt_want_write(cstate->current_fh.fh_export->ex_path.mnt);
788 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh,
792 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr,
795 mnt_drop_write(cstate->current_fh.fh_export->ex_path.mnt);
831 status = nfsd_write(rqstp, &cstate->current_fh, filp,
857 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP);
879 status = nfsd4_encode_fattr(&cstate->current_fh,
880 cstate->current_fh.fh_export,
881 cstate->current_fh.fh_dentry, buf,
1018 fh_init(&resp->cstate.current_fh, NFS4_FHSIZE);
1066 if (!cstate->current_fh.fh_dentry) {
1071 } else if (cstate->current_fh.fh_export->ex_fslocs.migrated &&
1117 fh_put(&resp->cstate.current_fh);