Lines Matching refs:nfs4_client

139 static bool is_client_expired(struct nfs4_client *clp)
144 static __be32 get_client_locked(struct nfs4_client *clp)
158 renew_client_locked(struct nfs4_client *clp)
175 static void put_client_renew_locked(struct nfs4_client *clp)
189 static void put_client_renew(struct nfs4_client *clp)
217 struct nfs4_client *clp = ses->se_client;
229 struct nfs4_client *clp = ses->se_client;
291 struct nfs4_client *clp = lo->lo_owner.so_client;
372 struct nfs4_client *clp)
390 struct nfs4_client *clp)
652 alloc_clnt_odstate(struct nfs4_client *clp)
702 struct nfs4_client *cl;
724 struct nfs4_stid *nfs4_alloc_stid(struct nfs4_client *cl, struct kmem_cache *slab,
844 static struct nfs4_ol_stateid * nfs4_alloc_open_stateid(struct nfs4_client *clp)
939 alloc_init_deleg(struct nfs4_client *clp, struct nfs4_file *fp,
983 struct nfs4_client *clp = s->sc_client;
1049 * @clp: a pointer to the nfs4_client we're granting a delegation to
1057 nfs4_delegation_exists(struct nfs4_client *clp, struct nfs4_file *fp)
1060 struct nfs4_client *searchclp = NULL;
1083 * nfs4_client for this nfs4_file. Delegation is not hashed.
1090 struct nfs4_client *clp = dp->dl_stid.sc_client;
1143 struct nfs4_client *clp = dp->dl_stid.sc_client;
1332 struct nfs4_client *clp = sop->so_client;
1401 struct nfs4_client *clp = s->sc_client;
1429 struct nfs4_client *clp = stp->st_stid.sc_client;
1441 struct nfs4_client *clp = lo->lo_owner.so_client;
1510 struct nfs4_client *clp = oo->oo_owner.so_client;
1538 struct nfs4_client *clp = oo->oo_owner.so_client;
1605 struct nfs4_client *clp = ses->se_client;
1749 struct nfs4_client *clp = c->cn_session->se_client;
1782 struct nfs4_client *clp = ses->se_client;
1820 struct nfs4_client *clp = s->se_client;
1850 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp, struct nfsd4_create_session *cses)
1931 struct nfs4_client *clp = ses->se_client;
1962 static struct nfs4_client *alloc_client(struct xdr_netobj name)
1964 struct nfs4_client *clp;
2007 struct nfs4_client *clp = container_of(c, struct nfs4_client, cl_nfsdfs);
2018 static void drop_client(struct nfs4_client *clp)
2024 free_client(struct nfs4_client *clp)
2045 unhash_client_locked(struct nfs4_client *clp)
2070 unhash_client(struct nfs4_client *clp)
2079 static __be32 mark_client_expired_locked(struct nfs4_client *clp)
2088 __destroy_client(struct nfs4_client *clp)
2138 destroy_client(struct nfs4_client *clp)
2144 static void inc_reclaim_complete(struct nfs4_client *clp)
2160 static void expire_client(struct nfs4_client *clp)
2167 static void copy_verf(struct nfs4_client *target, nfs4_verifier *source)
2173 static void copy_clid(struct nfs4_client *target, struct nfs4_client *source)
2279 bool nfsd4_mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp)
2297 static void gen_confirm(struct nfs4_client *clp, struct nfsd_net *nn)
2310 static void gen_clid(struct nfs4_client *clp, struct nfsd_net *nn)
2318 find_stateid_locked(struct nfs4_client *cl, stateid_t *t)
2329 find_stateid_by_type(struct nfs4_client *cl, stateid_t *t, char typemask)
2345 static struct nfs4_client *get_nfsdfs_clp(struct inode *inode)
2351 return container_of(nc, struct nfs4_client, cl_nfsdfs);
2364 struct nfs4_client *clp;
2405 struct nfs4_client *clp = s->private;
2417 struct nfs4_client *clp = s->private;
2431 struct nfs4_client *clp = s->private;
2628 struct nfs4_client *clp;
2646 struct nfs4_client *clp = m->private;
2666 static void force_expire_client(struct nfs4_client *clp)
2692 struct nfs4_client *clp;
2719 static struct nfs4_client *create_client(struct xdr_netobj name,
2722 struct nfs4_client *clp;
2757 add_clp_to_name_tree(struct nfs4_client *new_clp, struct rb_root *root)
2760 struct nfs4_client *clp;
2763 clp = rb_entry(*new, struct nfs4_client, cl_namenode);
2776 static struct nfs4_client *
2781 struct nfs4_client *clp;
2784 clp = rb_entry(node, struct nfs4_client, cl_namenode);
2797 add_to_unconfirmed(struct nfs4_client *clp)
2812 move_to_confirmed(struct nfs4_client *clp)
2819 dprintk("NFSD: move_to_confirm nfs4_client %p\n", clp);
2827 static struct nfs4_client *
2830 struct nfs4_client *clp;
2844 static struct nfs4_client *
2853 static struct nfs4_client *
2862 static bool clp_used_exchangeid(struct nfs4_client *clp)
2867 static struct nfs4_client *
2874 static struct nfs4_client *
2882 gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se, struct svc_rqst *rqstp)
3024 nfsd4_set_ex_flags(struct nfs4_client *new, struct nfsd4_exchange_id *clid)
3039 static bool client_has_openowners(struct nfs4_client *clp)
3050 static bool client_has_state(struct nfs4_client *clp)
3061 static __be32 copy_impl_id(struct nfs4_client *clp,
3081 struct nfs4_client *conf, *new;
3082 struct nfs4_client *unconf = NULL;
3380 struct nfs4_client *conf, *unconf;
3381 struct nfs4_client *old = NULL;
3539 struct nfs4_client *clp = session->se_client;
3664 struct nfs4_client *clp = ses->se_client;
3745 struct nfs4_client *clp;
3883 struct nfs4_client *conf, *unconf;
3884 struct nfs4_client *clp = NULL;
3968 struct nfs4_client *conf, *new;
3969 struct nfs4_client *unconf = NULL;
4022 struct nfs4_client *conf, *unconf;
4023 struct nfs4_client *old = NULL;
4137 sizeof(struct nfs4_client), 0, 0, NULL);
4210 static inline void *alloc_stateowner(struct kmem_cache *slab, struct xdr_netobj *owner, struct nfs4_client *clp)
4231 static void hash_openowner(struct nfs4_openowner *oo, struct nfs4_client *clp, unsigned int strhashval)
4331 struct nfs4_client *clp = cstate->clp;
4639 struct nfs4_client *clp;
4683 struct nfs4_client *found;
4710 /* Cache the nfs4_client in cstate! */
4720 struct nfs4_client *clp = NULL;
4790 static struct nfs4_delegation *find_deleg_stateid(struct nfs4_client *cl, stateid_t *s)
4808 nfs4_check_deleg(struct nfs4_client *cl, struct nfsd4_open *open,
4965 static bool nfsd4_cb_channel_good(struct nfs4_client *clp)
4996 nfs4_set_delegation(struct nfs4_client *clp, struct svc_fh *fh,
5108 struct nfs4_client *clp = stp->st_stid.sc_client;
5193 struct nfs4_client *cl = open->op_openowner->oo_owner.so_client;
5320 struct nfs4_client *clp;
5399 struct nfs4_client *clp;
5429 clp = list_entry(pos, struct nfs4_client, cl_lru);
5443 clp = list_entry(pos, struct nfs4_client, cl_lru);
5651 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid)
5805 struct nfs4_client *clp,
5944 struct nfs4_client *cl = cstate->session->se_client;
5990 struct nfs4_client *cl = cstate->session->se_client;
6222 struct nfs4_client *clp = s->st_stid.sc_client;
6440 find_lockowner_str_locked(struct nfs4_client *clp, struct xdr_netobj *owner)
6458 find_lockowner_str(struct nfs4_client *clp, struct xdr_netobj *owner)
6493 alloc_init_lock_stateowner(unsigned int strhashval, struct nfs4_client *clp,
6544 struct nfs4_client *clp = lo->lo_owner.so_client;
6594 struct nfs4_client *clp = oo->oo_owner.so_client;
6646 struct nfs4_client *cl = oo->oo_owner.so_client;
7124 struct nfs4_client *clp;
7364 struct nfs4_client *clp = NULL;
7369 clp = list_entry(nn->conf_id_hashtbl[i].next, struct nfs4_client, cl_idhash);
7378 clp = list_entry(nn->unconf_id_hashtbl[i].next, struct nfs4_client, cl_idhash);