Lines Matching refs:nfs4_client
161 static bool is_client_expired(struct nfs4_client *clp)
167 struct nfs4_client *clp)
173 static __be32 get_client_locked(struct nfs4_client *clp)
189 renew_client_locked(struct nfs4_client *clp)
208 static void put_client_renew_locked(struct nfs4_client *clp)
222 static void put_client_renew(struct nfs4_client *clp)
250 struct nfs4_client *clp = ses->se_client;
262 struct nfs4_client *clp = ses->se_client;
335 struct nfs4_client *clp = lo->lo_owner.so_client;
543 struct nfs4_client *clp)
561 struct nfs4_client *clp)
754 struct nfs4_client *clp;
865 alloc_clnt_odstate(struct nfs4_client *clp)
915 struct nfs4_client *cl;
937 struct nfs4_stid *nfs4_alloc_stid(struct nfs4_client *cl, struct kmem_cache *slab,
1058 static struct nfs4_ol_stateid * nfs4_alloc_open_stateid(struct nfs4_client *clp)
1158 alloc_init_deleg(struct nfs4_client *clp, struct nfs4_file *fp,
1202 struct nfs4_client *clp = s->sc_client;
1268 * @clp: a pointer to the nfs4_client we're granting a delegation to
1276 nfs4_delegation_exists(struct nfs4_client *clp, struct nfs4_file *fp)
1279 struct nfs4_client *searchclp = NULL;
1302 * nfs4_client for this nfs4_file. Delegation is not hashed.
1309 struct nfs4_client *clp = dp->dl_stid.sc_client;
1362 struct nfs4_client *clp = dp->dl_stid.sc_client;
1451 struct nfs4_client *clp = sop->so_client;
1520 struct nfs4_client *clp = s->sc_client;
1548 struct nfs4_client *clp = stp->st_stid.sc_client;
1560 struct nfs4_client *clp = lo->lo_owner.so_client;
1629 struct nfs4_client *clp = oo->oo_owner.so_client;
1657 struct nfs4_client *clp = oo->oo_owner.so_client;
1724 struct nfs4_client *clp = ses->se_client;
1867 struct nfs4_client *clp = c->cn_session->se_client;
1902 struct nfs4_client *clp = ses->se_client;
1940 struct nfs4_client *clp = s->se_client;
1970 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp, struct nfsd4_create_session *cses)
2051 struct nfs4_client *clp = ses->se_client;
2082 static struct nfs4_client *alloc_client(struct xdr_netobj name,
2085 struct nfs4_client *clp;
2135 struct nfs4_client *clp = container_of(c, struct nfs4_client, cl_nfsdfs);
2147 static void drop_client(struct nfs4_client *clp)
2153 free_client(struct nfs4_client *clp)
2174 unhash_client_locked(struct nfs4_client *clp)
2199 unhash_client(struct nfs4_client *clp)
2208 static __be32 mark_client_expired_locked(struct nfs4_client *clp)
2217 __destroy_client(struct nfs4_client *clp)
2270 destroy_client(struct nfs4_client *clp)
2276 static void inc_reclaim_complete(struct nfs4_client *clp)
2292 static void expire_client(struct nfs4_client *clp)
2299 static void copy_verf(struct nfs4_client *target, nfs4_verifier *source)
2305 static void copy_clid(struct nfs4_client *target, struct nfs4_client *source)
2411 bool nfsd4_mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp)
2429 static void gen_confirm(struct nfs4_client *clp, struct nfsd_net *nn)
2442 static void gen_clid(struct nfs4_client *clp, struct nfsd_net *nn)
2450 find_stateid_locked(struct nfs4_client *cl, stateid_t *t)
2461 find_stateid_by_type(struct nfs4_client *cl, stateid_t *t, char typemask)
2477 static struct nfs4_client *get_nfsdfs_clp(struct inode *inode)
2483 return container_of(nc, struct nfs4_client, cl_nfsdfs);
2511 struct nfs4_client *clp;
2555 struct nfs4_client *clp = s->private;
2567 struct nfs4_client *clp = s->private;
2581 struct nfs4_client *clp = s->private;
2778 struct nfs4_client *clp;
2796 struct nfs4_client *clp = m->private;
2816 static void force_expire_client(struct nfs4_client *clp)
2844 struct nfs4_client *clp;
2888 struct nfs4_client *clp = cb->cb_clp;
2902 static struct nfs4_client *create_client(struct xdr_netobj name,
2905 struct nfs4_client *clp;
2951 add_clp_to_name_tree(struct nfs4_client *new_clp, struct rb_root *root)
2954 struct nfs4_client *clp;
2957 clp = rb_entry(*new, struct nfs4_client, cl_namenode);
2970 static struct nfs4_client *
2975 struct nfs4_client *clp;
2978 clp = rb_entry(node, struct nfs4_client, cl_namenode);
2991 add_to_unconfirmed(struct nfs4_client *clp)
3006 move_to_confirmed(struct nfs4_client *clp)
3021 static struct nfs4_client *
3024 struct nfs4_client *clp;
3038 static struct nfs4_client *
3047 static struct nfs4_client *
3056 static bool clp_used_exchangeid(struct nfs4_client *clp)
3061 static struct nfs4_client *
3068 static struct nfs4_client *
3076 gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se, struct svc_rqst *rqstp)
3218 nfsd4_set_ex_flags(struct nfs4_client *new, struct nfsd4_exchange_id *clid)
3233 static bool client_has_openowners(struct nfs4_client *clp)
3244 static bool client_has_state(struct nfs4_client *clp)
3255 static __be32 copy_impl_id(struct nfs4_client *clp,
3275 struct nfs4_client *conf, *new;
3276 struct nfs4_client *unconf = NULL;
3584 struct nfs4_client *conf, *unconf;
3585 struct nfs4_client *old = NULL;
3747 struct nfs4_client *clp = session->se_client;
3872 struct nfs4_client *clp = ses->se_client;
3953 struct nfs4_client *clp;
4091 struct nfs4_client *conf, *unconf;
4092 struct nfs4_client *clp = NULL;
4135 struct nfs4_client *clp = cstate->clp;
4178 struct nfs4_client *conf, *new;
4179 struct nfs4_client *unconf = NULL;
4235 struct nfs4_client *conf, *unconf;
4236 struct nfs4_client *old = NULL;
4354 sizeof(struct nfs4_client), 0, 0, NULL);
4472 static inline void *alloc_stateowner(struct kmem_cache *slab, struct xdr_netobj *owner, struct nfs4_client *clp)
4493 static void hash_openowner(struct nfs4_openowner *oo, struct nfs4_client *clp, unsigned int strhashval)
4593 struct nfs4_client *clp = cstate->clp;
4928 struct nfs4_client *clp = dp->dl_stid.sc_client;
4964 struct nfs4_client *clp;
4981 struct nfs4_client *clp = dp->dl_stid.sc_client;
5008 static struct nfs4_client *lookup_clientid(clientid_t *clid, bool sessions,
5011 struct nfs4_client *found;
5047 struct nfs4_client *clp = NULL;
5115 static struct nfs4_delegation *find_deleg_stateid(struct nfs4_client *cl, stateid_t *s)
5133 nfs4_check_deleg(struct nfs4_client *cl, struct nfsd4_open *open,
5319 static bool nfsd4_cb_channel_good(struct nfs4_client *clp)
5349 static int nfsd4_check_conflicting_opens(struct nfs4_client *clp,
5458 struct nfs4_client *clp = stp->st_stid.sc_client;
5632 struct nfs4_client *clp = stp->st_stid.sc_client;
5727 struct nfs4_client *cl = open->op_openowner->oo_owner.so_client;
5856 struct nfs4_client *clp;
6028 nfs4_anylock_blockers(struct nfs4_client *clp)
6059 struct nfs4_client *clp;
6066 clp = list_entry(pos, struct nfs4_client, cl_lru);
6096 struct nfs4_client *clp;
6103 clp = list_entry(pos, struct nfs4_client, cl_lru);
6120 struct nfs4_client *clp;
6123 clp = list_entry(pos, struct nfs4_client, cl_lru);
6258 struct nfs4_client *clp;
6264 clp = list_entry(pos, struct nfs4_client, cl_lru);
6283 clp = list_first_entry(&cblist, struct nfs4_client,
6392 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid)
6550 struct nfs4_client *clp,
6586 struct nfs4_client *found;
6706 struct nfs4_client *cl = cstate->clp;
6752 struct nfs4_client *cl = cstate->clp;
6994 struct nfs4_client *clp = s->st_stid.sc_client;
7146 /* return pointer to struct nfs4_client if client is expirable */
7151 struct nfs4_client *clp = lo->lo_owner.so_client;
7233 find_lockowner_str_locked(struct nfs4_client *clp, struct xdr_netobj *owner)
7251 find_lockowner_str(struct nfs4_client *clp, struct xdr_netobj *owner)
7286 alloc_init_lock_stateowner(unsigned int strhashval, struct nfs4_client *clp,
7337 struct nfs4_client *clp = lo->lo_owner.so_client;
7387 struct nfs4_client *clp = oo->oo_owner.so_client;
7439 struct nfs4_client *cl = oo->oo_owner.so_client;
7947 struct nfs4_client *clp;
8076 nfs4_check_open_reclaim(struct nfs4_client *clp)
8178 struct nfs4_client *clp = NULL;
8183 clp = list_entry(nn->conf_id_hashtbl[i].next, struct nfs4_client, cl_idhash);
8192 clp = list_entry(nn->unconf_id_hashtbl[i].next, struct nfs4_client, cl_idhash);