• Home
  • Raw
  • Download

Lines Matching refs:cstate

1376 	struct nfsd4_slot *slot = resp->cstate.slot;  in nfsd4_store_cache_entry()
1382 slot->sl_status = resp->cstate.status; in nfsd4_store_cache_entry()
1389 slot->sl_datalen = (char *)resp->p - (char *)resp->cstate.datap; in nfsd4_store_cache_entry()
1390 base = (char *)resp->cstate.datap - in nfsd4_store_cache_entry()
1410 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_enc_sequence_replay()
1433 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_replay_cache_entry()
1444 memcpy(resp->cstate.datap, slot->sl_data, slot->sl_datalen); in nfsd4_replay_cache_entry()
1447 resp->p = resp->cstate.datap + XDR_QUADLEN(slot->sl_datalen); in nfsd4_replay_cache_entry()
1471 struct nfsd4_compound_state *cstate, in nfsd4_exchange_id() argument
1664 struct nfsd4_compound_state *cstate, in nfsd4_create_session() argument
1779 struct nfsd4_compound_state *cstate, in nfsd4_bind_conn_to_session() argument
1787 cstate->session = find_in_sessionid_hashtbl(&bcts->sessionid); in nfsd4_bind_conn_to_session()
1790 if (cstate->session) { in nfsd4_bind_conn_to_session()
1791 nfsd4_get_session(cstate->session); in nfsd4_bind_conn_to_session()
1792 atomic_inc(&cstate->session->se_client->cl_refcount); in nfsd4_bind_conn_to_session()
1795 if (!cstate->session) in nfsd4_bind_conn_to_session()
1800 nfsd4_new_conn(rqstp, cstate->session, bcts->dir); in nfsd4_bind_conn_to_session()
1813 struct nfsd4_compound_state *cstate, in nfsd4_destroy_session() argument
1826 if (nfsd4_compound_in_session(cstate->session, &sessionid->sessionid)) { in nfsd4_destroy_session()
1906 struct nfsd4_compound_state *cstate, in nfsd4_sequence() argument
1958 cstate->slot = slot; in nfsd4_sequence()
1959 cstate->session = session; in nfsd4_sequence()
1963 cstate->status = nfserr_replay_cache; in nfsd4_sequence()
1980 cstate->slot = slot; in nfsd4_sequence()
1981 cstate->session = session; in nfsd4_sequence()
1985 if (cstate->session) { in nfsd4_sequence()
1988 nfsd4_get_session(cstate->session); in nfsd4_sequence()
2015 nfsd4_destroy_clientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_de… in nfsd4_destroy_clientid() argument
2033 if (cstate->session && conf == cstate->session->se_client) { in nfsd4_destroy_clientid()
2052 nfsd4_reclaim_complete(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_re… in nfsd4_reclaim_complete() argument
2057 if (!cstate->current_fh.fh_dentry) in nfsd4_reclaim_complete()
2069 &cstate->session->se_client->cl_flags)) in nfsd4_reclaim_complete()
2073 if (is_client_expired(cstate->session->se_client)) in nfsd4_reclaim_complete()
2084 nfsd4_client_record_create(cstate->session->se_client); in nfsd4_reclaim_complete()
2091 nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_setclientid() argument
2209 struct nfsd4_compound_state *cstate, in nfsd4_setclientid_confirm() argument
2597 static __be32 nfsd4_check_seqid(struct nfsd4_compound_state *cstate, struct nfs4_stateowner *so, u3… in nfsd4_check_seqid() argument
2599 if (nfsd4_has_session(cstate)) in nfsd4_check_seqid()
2609 nfsd4_process_open1(struct nfsd4_compound_state *cstate, in nfsd4_process_open1() argument
2644 status = nfsd4_check_seqid(cstate, &oo->oo_owner, open->op_seqid); in nfsd4_process_open1()
3059 if (nfsd4_has_session(&resp->cstate)) { in nfsd4_process_open2()
3088 nfs4_set_claim_prev(open, nfsd4_has_session(&resp->cstate)); in nfsd4_process_open2()
3094 !nfsd4_has_session(&resp->cstate)) in nfsd4_process_open2()
3122 nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_renew() argument
3413 nfs4_preprocess_stateid_op(struct nfsd4_compound_state *cstate, in nfs4_preprocess_stateid_op() argument
3419 struct svc_fh *current_fh = &cstate->current_fh; in nfs4_preprocess_stateid_op()
3435 status = check_stateid_generation(stateid, &s->sc_stateid, nfsd4_has_session(cstate)); in nfs4_preprocess_stateid_op()
3489 nfsd4_test_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_test_stateid() argument
3493 struct nfs4_client *cl = cstate->session->se_client; in nfsd4_test_stateid()
3504 nfsd4_free_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_free_stateid() argument
3509 struct nfs4_client *cl = cstate->session->se_client; in nfsd4_free_stateid()
3545 static __be32 nfs4_seqid_op_checks(struct nfsd4_compound_state *cstate, stateid_t *stateid, u32 seq… in nfs4_seqid_op_checks() argument
3547 struct svc_fh *current_fh = &cstate->current_fh; in nfs4_seqid_op_checks()
3551 status = nfsd4_check_seqid(cstate, sop, seqid); in nfs4_seqid_op_checks()
3560 status = check_stateid_generation(stateid, &stp->st_stid.sc_stateid, nfsd4_has_session(cstate)); in nfs4_seqid_op_checks()
3570 nfs4_preprocess_seqid_op(struct nfsd4_compound_state *cstate, u32 seqid, in nfs4_preprocess_seqid_op() argument
3585 cstate->replay_owner = (*stpp)->st_stateowner; in nfs4_preprocess_seqid_op()
3587 return nfs4_seqid_op_checks(cstate, stateid, seqid, *stpp); in nfs4_preprocess_seqid_op()
3590 static __be32 nfs4_preprocess_confirmed_seqid_op(struct nfsd4_compound_state *cstate, u32 seqid, st… in nfs4_preprocess_confirmed_seqid_op() argument
3595 status = nfs4_preprocess_seqid_op(cstate, seqid, stateid, in nfs4_preprocess_confirmed_seqid_op()
3606 nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_open_confirm() argument
3614 (int)cstate->current_fh.fh_dentry->d_name.len, in nfsd4_open_confirm()
3615 cstate->current_fh.fh_dentry->d_name.name); in nfsd4_open_confirm()
3617 status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0); in nfsd4_open_confirm()
3623 status = nfs4_preprocess_seqid_op(cstate, in nfsd4_open_confirm()
3641 if (!cstate->replay_owner) in nfsd4_open_confirm()
3684 struct nfsd4_compound_state *cstate, in nfsd4_open_downgrade() argument
3691 (int)cstate->current_fh.fh_dentry->d_name.len, in nfsd4_open_downgrade()
3692 cstate->current_fh.fh_dentry->d_name.name); in nfsd4_open_downgrade()
3700 status = nfs4_preprocess_confirmed_seqid_op(cstate, od->od_seqid, in nfsd4_open_downgrade()
3723 if (!cstate->replay_owner) in nfsd4_open_downgrade()
3758 nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_close() argument
3766 (int)cstate->current_fh.fh_dentry->d_name.len, in nfsd4_close()
3767 cstate->current_fh.fh_dentry->d_name.name); in nfsd4_close()
3770 status = nfs4_preprocess_seqid_op(cstate, close->cl_seqid, in nfsd4_close()
3792 if (!cstate->replay_owner) in nfsd4_close()
3798 nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_delegreturn() argument
3807 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) in nfsd4_delegreturn()
3809 inode = cstate->current_fh.fh_dentry->d_inode; in nfsd4_delegreturn()
3816 status = check_stateid_generation(stateid, &dp->dl_stid.sc_stateid, nfsd4_has_session(cstate)); in nfsd4_delegreturn()
4014 __be32 lookup_or_create_lock_state(struct nfsd4_compound_state *cstate, struct nfs4_ol_stateid *ost… in lookup_or_create_lock_state() argument
4024 if (!cstate->minorversion) in lookup_or_create_lock_state()
4049 nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lock() argument
4071 if ((status = fh_verify(rqstp, &cstate->current_fh, in nfsd4_lock()
4087 if (nfsd4_has_session(cstate)) in nfsd4_lock()
4090 &cstate->session->se_client->cl_clientid, in nfsd4_lock()
4098 status = nfs4_preprocess_confirmed_seqid_op(cstate, in nfsd4_lock()
4109 status = lookup_or_create_lock_state(cstate, open_stp, lock, in nfsd4_lock()
4115 status = nfs4_preprocess_seqid_op(cstate, in nfsd4_lock()
4200 if (!cstate->replay_owner) in nfsd4_lock()
4226 nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lockt() argument
4243 if (!nfsd4_has_session(cstate) && STALE_CLIENTID(&lockt->lt_clientid)) in nfsd4_lockt()
4246 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) in nfsd4_lockt()
4249 inode = cstate->current_fh.fh_dentry->d_inode; in nfsd4_lockt()
4277 status = nfsd_test_lock(rqstp, &cstate->current_fh, &file_lock); in nfsd4_lockt()
4291 nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_locku() argument
4309 status = nfs4_preprocess_seqid_op(cstate, locku->lu_seqid, in nfsd4_locku()
4346 if (!cstate->replay_owner) in nfsd4_locku()
4381 struct nfsd4_compound_state *cstate, in nfsd4_release_lockowner() argument
4788 get_stateid(struct nfsd4_compound_state *cstate, stateid_t *stateid) in get_stateid() argument
4790 if (HAS_STATE_ID(cstate, CURRENT_STATE_ID_FLAG) && CURRENT_STATEID(stateid)) in get_stateid()
4791 memcpy(stateid, &cstate->current_stateid, sizeof(stateid_t)); in get_stateid()
4795 put_stateid(struct nfsd4_compound_state *cstate, stateid_t *stateid) in put_stateid() argument
4797 if (cstate->minorversion) { in put_stateid()
4798 memcpy(&cstate->current_stateid, stateid, sizeof(stateid_t)); in put_stateid()
4799 SET_STATE_ID(cstate, CURRENT_STATE_ID_FLAG); in put_stateid()
4804 clear_current_stateid(struct nfsd4_compound_state *cstate) in clear_current_stateid() argument
4806 CLEAR_STATE_ID(cstate, CURRENT_STATE_ID_FLAG); in clear_current_stateid()
4813 nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *od… in nfsd4_set_opendowngradestateid() argument
4815 put_stateid(cstate, &odp->od_stateid); in nfsd4_set_opendowngradestateid()
4819 nfsd4_set_openstateid(struct nfsd4_compound_state *cstate, struct nfsd4_open *open) in nfsd4_set_openstateid() argument
4821 put_stateid(cstate, &open->op_stateid); in nfsd4_set_openstateid()
4825 nfsd4_set_closestateid(struct nfsd4_compound_state *cstate, struct nfsd4_close *close) in nfsd4_set_closestateid() argument
4827 put_stateid(cstate, &close->cl_stateid); in nfsd4_set_closestateid()
4831 nfsd4_set_lockstateid(struct nfsd4_compound_state *cstate, struct nfsd4_lock *lock) in nfsd4_set_lockstateid() argument
4833 put_stateid(cstate, &lock->lk_resp_stateid); in nfsd4_set_lockstateid()
4841 nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *od… in nfsd4_get_opendowngradestateid() argument
4843 get_stateid(cstate, &odp->od_stateid); in nfsd4_get_opendowngradestateid()
4847 nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *cstate, struct nfsd4_delegreturn *drp) in nfsd4_get_delegreturnstateid() argument
4849 get_stateid(cstate, &drp->dr_stateid); in nfsd4_get_delegreturnstateid()
4853 nfsd4_get_freestateid(struct nfsd4_compound_state *cstate, struct nfsd4_free_stateid *fsp) in nfsd4_get_freestateid() argument
4855 get_stateid(cstate, &fsp->fr_stateid); in nfsd4_get_freestateid()
4859 nfsd4_get_setattrstateid(struct nfsd4_compound_state *cstate, struct nfsd4_setattr *setattr) in nfsd4_get_setattrstateid() argument
4861 get_stateid(cstate, &setattr->sa_stateid); in nfsd4_get_setattrstateid()
4865 nfsd4_get_closestateid(struct nfsd4_compound_state *cstate, struct nfsd4_close *close) in nfsd4_get_closestateid() argument
4867 get_stateid(cstate, &close->cl_stateid); in nfsd4_get_closestateid()
4871 nfsd4_get_lockustateid(struct nfsd4_compound_state *cstate, struct nfsd4_locku *locku) in nfsd4_get_lockustateid() argument
4873 get_stateid(cstate, &locku->lu_stateid); in nfsd4_get_lockustateid()
4877 nfsd4_get_readstateid(struct nfsd4_compound_state *cstate, struct nfsd4_read *read) in nfsd4_get_readstateid() argument
4879 get_stateid(cstate, &read->rd_stateid); in nfsd4_get_readstateid()
4883 nfsd4_get_writestateid(struct nfsd4_compound_state *cstate, struct nfsd4_write *write) in nfsd4_get_writestateid() argument
4885 get_stateid(cstate, &write->wr_stateid); in nfsd4_get_writestateid()