Lines Matching refs:cl

534 	struct nfs4_client *cl;  in find_or_hash_clnt_odstate()  local
539 cl = new->co_client; in find_or_hash_clnt_odstate()
543 if (co->co_client == cl) { in find_or_hash_clnt_odstate()
556 struct nfs4_stid *nfs4_alloc_stid(struct nfs4_client *cl, in nfs4_alloc_stid() argument
567 spin_lock(&cl->cl_lock); in nfs4_alloc_stid()
568 new_id = idr_alloc_cyclic(&cl->cl_stateids, stid, 0, 0, GFP_NOWAIT); in nfs4_alloc_stid()
569 spin_unlock(&cl->cl_lock); in nfs4_alloc_stid()
573 stid->sc_client = cl; in nfs4_alloc_stid()
575 stid->sc_stateid.si_opaque.so_clid = cl->cl_clientid; in nfs4_alloc_stid()
1962 static bool mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp) in mach_creds_match() argument
1966 if (!cl->cl_mach_cred) in mach_creds_match()
1968 if (cl->cl_cred.cr_gss_mech != cr->cr_gss_mech) in mach_creds_match()
1974 return 0 == strcmp(cl->cl_cred.cr_principal, cr->cr_principal); in mach_creds_match()
1998 find_stateid_locked(struct nfs4_client *cl, stateid_t *t) in find_stateid_locked() argument
2002 ret = idr_find(&cl->cl_stateids, t->si_opaque.so_id); in find_stateid_locked()
2009 find_stateid_by_type(struct nfs4_client *cl, stateid_t *t, char typemask) in find_stateid_by_type() argument
2013 spin_lock(&cl->cl_lock); in find_stateid_by_type()
2014 s = find_stateid_locked(cl, t); in find_stateid_by_type()
2021 spin_unlock(&cl->cl_lock); in find_stateid_by_type()
3845 static struct nfs4_delegation *find_deleg_stateid(struct nfs4_client *cl, stateid_t *s) in find_deleg_stateid() argument
3849 ret = find_stateid_by_type(cl, s, NFS4_DELEG_STID); in find_deleg_stateid()
3862 nfs4_check_deleg(struct nfs4_client *cl, struct nfsd4_open *open, in nfs4_check_deleg() argument
3869 deleg = find_deleg_stateid(cl, &open->op_delegate_stateid); in nfs4_check_deleg()
4270 struct nfs4_client *cl = open->op_openowner->oo_owner.so_client; in nfsd4_process_open2() local
4284 status = nfs4_check_deleg(cl, open, &dp); in nfsd4_process_open2()
4662 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument
4670 if (!same_clid(&stateid->si_opaque.so_clid, &cl->cl_clientid)) { in nfsd4_validate_stateid()
4672 rpc_ntop((struct sockaddr *)&cl->cl_addr, addr_str, in nfsd4_validate_stateid()
4678 spin_lock(&cl->cl_lock); in nfsd4_validate_stateid()
4679 s = find_stateid_locked(cl, stateid); in nfsd4_validate_stateid()
4704 spin_unlock(&cl->cl_lock); in nfsd4_validate_stateid()
4866 struct nfs4_client *cl = cstate->session->se_client; in nfsd4_test_stateid() local
4870 nfsd4_validate_stateid(cl, &stateid->ts_id_stateid); in nfsd4_test_stateid()
4883 struct nfs4_client *cl = cstate->session->se_client; in nfsd4_free_stateid() local
4886 spin_lock(&cl->cl_lock); in nfsd4_free_stateid()
4887 s = find_stateid_locked(cl, stateid); in nfsd4_free_stateid()
4910 spin_unlock(&cl->cl_lock); in nfsd4_free_stateid()
4917 spin_unlock(&cl->cl_lock); in nfsd4_free_stateid()
4924 spin_unlock(&cl->cl_lock); in nfsd4_free_stateid()
5484 struct nfs4_client *cl = oo->oo_owner.so_client; in lookup_or_create_lock_state() local
5489 lo = find_lockowner_str(cl, &lock->lk_new_owner); in lookup_or_create_lock_state()
5492 lo = alloc_init_lock_stateowner(strhashval, cl, ost, lock); in lookup_or_create_lock_state()