Lines Matching refs:nfs4_client
116 static bool is_client_expired(struct nfs4_client *clp) in is_client_expired()
121 static __be32 get_client_locked(struct nfs4_client *clp) in get_client_locked()
135 renew_client_locked(struct nfs4_client *clp) in renew_client_locked()
155 static void put_client_renew_locked(struct nfs4_client *clp) in put_client_renew_locked()
167 static void put_client_renew(struct nfs4_client *clp) in put_client_renew()
193 struct nfs4_client *clp = ses->se_client; in nfsd4_put_session_locked()
205 struct nfs4_client *clp = ses->se_client; in nfsd4_put_session()
229 struct nfs4_client *clp) in find_openstateowner_str_locked()
247 struct nfs4_client *clp) in find_openstateowner_str()
484 alloc_clnt_odstate(struct nfs4_client *clp) in alloc_clnt_odstate()
534 struct nfs4_client *cl; in find_or_hash_clnt_odstate()
556 struct nfs4_stid *nfs4_alloc_stid(struct nfs4_client *cl, in nfs4_alloc_stid()
595 static struct nfs4_ol_stateid * nfs4_alloc_open_stateid(struct nfs4_client *clp) in nfs4_alloc_open_stateid()
692 alloc_init_deleg(struct nfs4_client *clp, struct svc_fh *current_fh, in alloc_init_deleg()
734 struct nfs4_client *clp = s->sc_client; in nfs4_put_stid()
795 nfs4_get_existing_delegation(struct nfs4_client *clp, struct nfs4_file *fp) in nfs4_get_existing_delegation()
798 struct nfs4_client *searchclp = NULL; in nfs4_get_existing_delegation()
829 struct nfs4_client *clp = dp->dl_stid.sc_client; in hash_delegation_locked()
882 struct nfs4_client *clp = dp->dl_stid.sc_client; in revoke_delegation()
1074 struct nfs4_client *clp = sop->so_client; in nfs4_put_stateowner()
1133 struct nfs4_client *clp = s->sc_client; in put_ol_stateid_locked()
1173 struct nfs4_client *clp = lo->lo_owner.so_client; in unhash_lockowner_locked()
1205 struct nfs4_client *clp = lo->lo_owner.so_client; in release_lockowner()
1264 struct nfs4_client *clp = oo->oo_owner.so_client; in unhash_openowner_locked()
1292 struct nfs4_client *clp = oo->oo_owner.so_client; in release_openowner()
1359 struct nfs4_client *clp = ses->se_client; in gen_sessionid()
1478 struct nfs4_client *clp = c->cn_session->se_client; in nfsd4_conn_lost()
1511 struct nfs4_client *clp = ses->se_client; in nfsd4_hash_conn()
1549 struct nfs4_client *clp = s->se_client; in nfsd4_del_conns()
1579 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp… in init_session()
1660 struct nfs4_client *clp = ses->se_client; in unhash_session()
1692 static struct nfs4_client *alloc_client(struct xdr_netobj name) in alloc_client()
1694 struct nfs4_client *clp; in alloc_client()
1697 clp = kzalloc(sizeof(struct nfs4_client), GFP_KERNEL); in alloc_client()
1733 free_client(struct nfs4_client *clp) in free_client()
1753 unhash_client_locked(struct nfs4_client *clp) in unhash_client_locked()
1778 unhash_client(struct nfs4_client *clp) in unhash_client()
1787 static __be32 mark_client_expired_locked(struct nfs4_client *clp) in mark_client_expired_locked()
1796 __destroy_client(struct nfs4_client *clp) in __destroy_client()
1835 destroy_client(struct nfs4_client *clp) in destroy_client()
1841 static void expire_client(struct nfs4_client *clp) in expire_client()
1848 static void copy_verf(struct nfs4_client *target, nfs4_verifier *source) in copy_verf()
1854 static void copy_clid(struct nfs4_client *target, struct nfs4_client *source) in copy_clid()
1962 static bool mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp) in mach_creds_match()
1977 static void gen_confirm(struct nfs4_client *clp, struct nfsd_net *nn) in gen_confirm()
1990 static void gen_clid(struct nfs4_client *clp, struct nfsd_net *nn) in gen_clid()
1998 find_stateid_locked(struct nfs4_client *cl, stateid_t *t) in find_stateid_locked()
2009 find_stateid_by_type(struct nfs4_client *cl, stateid_t *t, char typemask) in find_stateid_by_type()
2025 static struct nfs4_client *create_client(struct xdr_netobj name, in create_client()
2028 struct nfs4_client *clp; in create_client()
2053 add_clp_to_name_tree(struct nfs4_client *new_clp, struct rb_root *root) in add_clp_to_name_tree()
2056 struct nfs4_client *clp; in add_clp_to_name_tree()
2059 clp = rb_entry(*new, struct nfs4_client, cl_namenode); in add_clp_to_name_tree()
2072 static struct nfs4_client *
2077 struct nfs4_client *clp; in find_clp_in_name_tree()
2080 clp = rb_entry(node, struct nfs4_client, cl_namenode); in find_clp_in_name_tree()
2093 add_to_unconfirmed(struct nfs4_client *clp) in add_to_unconfirmed()
2108 move_to_confirmed(struct nfs4_client *clp) in move_to_confirmed()
2123 static struct nfs4_client *
2126 struct nfs4_client *clp; in find_client_in_id_table()
2140 static struct nfs4_client *
2149 static struct nfs4_client *
2158 static bool clp_used_exchangeid(struct nfs4_client *clp) in clp_used_exchangeid()
2163 static struct nfs4_client *
2170 static struct nfs4_client *
2178 gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se, struct svc_rqst *rqstp) in gen_callback()
2309 nfsd4_set_ex_flags(struct nfs4_client *new, struct nfsd4_exchange_id *clid) in nfsd4_set_ex_flags()
2324 static bool client_has_openowners(struct nfs4_client *clp) in client_has_openowners()
2335 static bool client_has_state(struct nfs4_client *clp) in client_has_state()
2350 struct nfs4_client *conf, *new; in nfsd4_exchange_id()
2351 struct nfs4_client *unconf = NULL; in nfsd4_exchange_id()
2609 struct nfs4_client *conf, *unconf; in nfsd4_create_session()
2610 struct nfs4_client *old = NULL; in nfsd4_create_session()
2850 struct nfs4_client *clp = ses->se_client; in nfsd4_sequence_check_conn()
2898 struct nfs4_client *clp; in nfsd4_sequence()
3030 struct nfs4_client *conf, *unconf; in nfsd4_destroy_clientid()
3031 struct nfs4_client *clp = NULL; in nfsd4_destroy_clientid()
3111 struct nfs4_client *conf, *new; in nfsd4_setclientid()
3112 struct nfs4_client *unconf = NULL; in nfsd4_setclientid()
3168 struct nfs4_client *conf, *unconf; in nfsd4_setclientid_confirm()
3169 struct nfs4_client *old = NULL; in nfsd4_setclientid_confirm()
3347 … void *alloc_stateowner(struct kmem_cache *slab, struct xdr_netobj *owner, struct nfs4_client *clp) in alloc_stateowner()
3369 static void hash_openowner(struct nfs4_openowner *oo, struct nfs4_client *clp, unsigned int strhash… in hash_openowner()
3420 struct nfs4_client *clp = cstate->clp; in alloc_init_open_stateowner()
3738 struct nfs4_client *found; in lookup_clientid()
3775 struct nfs4_client *clp = NULL; in nfsd4_process_open1()
3845 static struct nfs4_delegation *find_deleg_stateid(struct nfs4_client *cl, stateid_t *s) in find_deleg_stateid()
3862 nfs4_check_deleg(struct nfs4_client *cl, struct nfsd4_open *open, in nfs4_check_deleg()
4008 static bool nfsd4_cb_channel_good(struct nfs4_client *clp) in nfsd4_cb_channel_good()
4102 nfs4_set_delegation(struct nfs4_client *clp, struct svc_fh *fh, in nfs4_set_delegation()
4184 struct nfs4_client *clp = stp->st_stid.sc_client; in nfs4_open_delegation()
4270 struct nfs4_client *cl = open->op_openowner->oo_owner.so_client; in nfsd4_process_open2()
4406 struct nfs4_client *clp; in nfsd4_renew()
4461 struct nfs4_client *clp; in nfs4_laundromat()
4474 clp = list_entry(pos, struct nfs4_client, cl_lru); in nfs4_laundromat()
4489 clp = list_entry(pos, struct nfs4_client, cl_lru); in nfs4_laundromat()
4662 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid()
4866 struct nfs4_client *cl = cstate->session->se_client; in nfsd4_test_stateid()
4883 struct nfs4_client *cl = cstate->session->se_client; in nfsd4_free_stateid()
5128 struct nfs4_client *clp = s->st_stid.sc_client; in nfsd4_close_open_stateid()
5301 find_lockowner_str_locked(struct nfs4_client *clp, struct xdr_netobj *owner) in find_lockowner_str_locked()
5319 find_lockowner_str(struct nfs4_client *clp, struct xdr_netobj *owner) in find_lockowner_str()
5354 alloc_init_lock_stateowner(unsigned int strhashval, struct nfs4_client *clp, in alloc_init_lock_stateowner()
5385 struct nfs4_client *clp = lo->lo_owner.so_client; in init_lock_stateid()
5410 struct nfs4_client *clp = lo->lo_owner.so_client; in find_lock_stateid()
5431 struct nfs4_client *clp = oo->oo_owner.so_client; in find_or_create_lock_stateid()
5484 struct nfs4_client *cl = oo->oo_owner.so_client; in lookup_or_create_lock_state()
5913 struct nfs4_client *clp; in nfsd4_release_lockowner()
6056 put_client(struct nfs4_client *clp) in put_client()
6061 static struct nfs4_client *
6064 struct nfs4_client *clp; in nfsd_find_client()
6081 struct nfs4_client *clp; in nfsd_inject_print_clients()
6105 struct nfs4_client *clp; in nfsd_inject_forget_client()
6132 struct nfs4_client *clp, *next; in nfsd_inject_forget_clients()
6156 static void nfsd_print_count(struct nfs4_client *clp, unsigned int count, in nfsd_print_count()
6168 struct nfs4_client *clp = lst->st_stid.sc_client; in nfsd_inject_add_lock_to_list()
6180 static u64 nfsd_foreach_client_lock(struct nfs4_client *clp, u64 max, in nfsd_foreach_client_lock()
6221 nfsd_collect_client_locks(struct nfs4_client *clp, struct list_head *collect, in nfsd_collect_client_locks()
6228 nfsd_print_client_locks(struct nfs4_client *clp) in nfsd_print_client_locks()
6238 struct nfs4_client *clp; in nfsd_inject_print_locks()
6257 struct nfs4_client *clp; in nfsd_reap_locks()
6272 struct nfs4_client *clp; in nfsd_inject_forget_client_locks()
6293 struct nfs4_client *clp; in nfsd_inject_forget_locks()
6313 nfsd_foreach_client_openowner(struct nfs4_client *clp, u64 max, in nfsd_foreach_client_openowner()
6350 nfsd_print_client_openowners(struct nfs4_client *clp) in nfsd_print_client_openowners()
6359 nfsd_collect_client_openowners(struct nfs4_client *clp, in nfsd_collect_client_openowners()
6369 struct nfs4_client *clp; in nfsd_inject_print_openowners()
6388 struct nfs4_client *clp; in nfsd_reap_openowners()
6404 struct nfs4_client *clp; in nfsd_inject_forget_client_openowners()
6425 struct nfs4_client *clp; in nfsd_inject_forget_openowners()
6445 static u64 nfsd_find_all_delegations(struct nfs4_client *clp, u64 max, in nfsd_find_all_delegations()
6487 nfsd_print_client_delegations(struct nfs4_client *clp) in nfsd_print_client_delegations()
6498 struct nfs4_client *clp; in nfsd_inject_print_delegations()
6517 struct nfs4_client *clp; in nfsd_forget_delegations()
6533 struct nfs4_client *clp; in nfsd_inject_forget_client_delegations()
6555 struct nfs4_client *clp; in nfsd_inject_forget_delegations()
6577 struct nfs4_client *clp; in nfsd_recall_delegations()
6602 struct nfs4_client *clp; in nfsd_inject_recall_client_delegations()
6624 struct nfs4_client *clp, *next; in nfsd_inject_recall_delegations()
6713 struct nfs4_client *clp = NULL; in nfs4_state_destroy_net()
6718 clp = list_entry(nn->conf_id_hashtbl[i].next, struct nfs4_client, cl_idhash); in nfs4_state_destroy_net()
6725 clp = list_entry(nn->unconf_id_hashtbl[i].next, struct nfs4_client, cl_idhash); in nfs4_state_destroy_net()