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()
1944 static bool mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp) in mach_creds_match() argument
1948 if (!cl->cl_mach_cred) in mach_creds_match()
1950 if (cl->cl_cred.cr_gss_mech != cr->cr_gss_mech) in mach_creds_match()
1956 return 0 == strcmp(cl->cl_cred.cr_principal, cr->cr_principal); in mach_creds_match()
1980 find_stateid_locked(struct nfs4_client *cl, stateid_t *t) in find_stateid_locked() argument
1984 ret = idr_find(&cl->cl_stateids, t->si_opaque.so_id); in find_stateid_locked()
1991 find_stateid_by_type(struct nfs4_client *cl, stateid_t *t, char typemask) in find_stateid_by_type() argument
1995 spin_lock(&cl->cl_lock); in find_stateid_by_type()
1996 s = find_stateid_locked(cl, t); in find_stateid_by_type()
2003 spin_unlock(&cl->cl_lock); in find_stateid_by_type()
3777 static struct nfs4_delegation *find_deleg_stateid(struct nfs4_client *cl, stateid_t *s) in find_deleg_stateid() argument
3781 ret = find_stateid_by_type(cl, s, NFS4_DELEG_STID); in find_deleg_stateid()
3794 nfs4_check_deleg(struct nfs4_client *cl, struct nfsd4_open *open, in nfs4_check_deleg() argument
3801 deleg = find_deleg_stateid(cl, &open->op_delegate_stateid); in nfs4_check_deleg()
4229 struct nfs4_client *cl = open->op_openowner->oo_owner.so_client; in nfsd4_process_open2() local
4242 status = nfs4_check_deleg(cl, open, &dp); in nfsd4_process_open2()
4608 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument
4616 if (!same_clid(&stateid->si_opaque.so_clid, &cl->cl_clientid)) { in nfsd4_validate_stateid()
4618 rpc_ntop((struct sockaddr *)&cl->cl_addr, addr_str, in nfsd4_validate_stateid()
4624 spin_lock(&cl->cl_lock); in nfsd4_validate_stateid()
4625 s = find_stateid_locked(cl, stateid); in nfsd4_validate_stateid()
4650 spin_unlock(&cl->cl_lock); in nfsd4_validate_stateid()
4774 struct nfs4_client *cl = cstate->session->se_client; in nfsd4_test_stateid() local
4778 nfsd4_validate_stateid(cl, &stateid->ts_id_stateid); in nfsd4_test_stateid()
4791 struct nfs4_client *cl = cstate->session->se_client; in nfsd4_free_stateid() local
4794 spin_lock(&cl->cl_lock); in nfsd4_free_stateid()
4795 s = find_stateid_locked(cl, stateid); in nfsd4_free_stateid()
4818 spin_unlock(&cl->cl_lock); in nfsd4_free_stateid()
4825 spin_unlock(&cl->cl_lock); in nfsd4_free_stateid()
4832 spin_unlock(&cl->cl_lock); in nfsd4_free_stateid()
5402 struct nfs4_client *cl = oo->oo_owner.so_client; in lookup_or_create_lock_state() local
5407 lo = find_lockowner_str(&cl->cl_clientid, &lock->v.new.owner, cl); in lookup_or_create_lock_state()
5410 lo = alloc_init_lock_stateowner(strhashval, cl, ost, lock); in lookup_or_create_lock_state()