Lines Matching refs:cred

113 int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred)  in nfs4_init_clientid()  argument
129 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); in nfs4_init_clientid()
136 status = nfs4_proc_setclientid_confirm(clp, &clid, cred); in nfs4_init_clientid()
160 const struct cred *cred) in nfs40_discover_server_trunking() argument
174 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); in nfs40_discover_server_trunking()
180 status = nfs40_walk_client_list(clp, result, cred); in nfs40_discover_server_trunking()
194 const struct cred *nfs4_get_machine_cred(struct nfs_client *clp) in nfs4_get_machine_cred()
207 static const struct cred *
210 const struct cred *cred = NULL; in nfs4_get_renew_cred_server_locked() local
220 cred = get_cred(sp->so_cred); in nfs4_get_renew_cred_server_locked()
223 return cred; in nfs4_get_renew_cred_server_locked()
233 const struct cred *nfs4_get_renew_cred(struct nfs_client *clp) in nfs4_get_renew_cred()
235 const struct cred *cred = NULL; in nfs4_get_renew_cred() local
239 cred = nfs4_get_machine_cred(clp); in nfs4_get_renew_cred()
240 if (cred != NULL) in nfs4_get_renew_cred()
246 cred = nfs4_get_renew_cred_server_locked(server); in nfs4_get_renew_cred()
247 if (cred != NULL) in nfs4_get_renew_cred()
254 return cred; in nfs4_get_renew_cred()
321 int nfs41_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs41_init_clientid() argument
327 status = nfs4_proc_exchange_id(clp, cred); in nfs41_init_clientid()
332 status = nfs4_proc_create_session(clp, cred); in nfs41_init_clientid()
358 const struct cred *cred) in nfs41_discover_server_trunking() argument
362 status = nfs4_proc_exchange_id(clp, cred); in nfs41_discover_server_trunking()
366 status = nfs41_walk_client_list(clp, result, cred); in nfs41_discover_server_trunking()
398 const struct cred *nfs4_get_clid_cred(struct nfs_client *clp) in nfs4_get_clid_cred()
400 const struct cred *cred; in nfs4_get_clid_cred() local
402 cred = nfs4_get_machine_cred(clp); in nfs4_get_clid_cred()
403 return cred; in nfs4_get_clid_cred()
407 nfs4_find_state_owner_locked(struct nfs_server *server, const struct cred *cred) in nfs4_find_state_owner_locked() argument
417 cmp = cred_fscmp(cred, sp->so_cred); in nfs4_find_state_owner_locked()
496 const struct cred *cred, in nfs4_alloc_state_owner() argument
506 sp->so_cred = get_cred(cred); in nfs4_alloc_state_owner()
572 const struct cred *cred, in nfs4_get_state_owner() argument
579 sp = nfs4_find_state_owner_locked(server, cred); in nfs4_get_state_owner()
583 new = nfs4_alloc_state_owner(server, cred, gfp_flags); in nfs4_get_state_owner()
1035 nfs4_stateid *dst, const struct cred **cred) in nfs4_select_rw_stateid() argument
1041 if (cred != NULL) in nfs4_select_rw_stateid()
1042 *cred = NULL; in nfs4_select_rw_stateid()
1048 if (nfs4_copy_delegation_stateid(state->inode, fmode, dst, cred)) { in nfs4_select_rw_stateid()
1797 const struct cred *cred) in nfs4_reclaim_complete() argument
1801 return ops->reclaim_complete(clp, cred); in nfs4_reclaim_complete()
1848 const struct cred *cred; in nfs4_state_end_reclaim_reboot() local
1855 cred = nfs4_get_clid_cred(clp); in nfs4_state_end_reclaim_reboot()
1856 err = nfs4_reclaim_complete(clp, ops, cred); in nfs4_state_end_reclaim_reboot()
1857 put_cred(cred); in nfs4_state_end_reclaim_reboot()
1967 const struct cred *cred; in nfs4_check_lease() local
1975 cred = ops->get_state_renewal_cred(clp); in nfs4_check_lease()
1976 if (cred == NULL) { in nfs4_check_lease()
1977 cred = nfs4_get_clid_cred(clp); in nfs4_check_lease()
1979 if (cred == NULL) in nfs4_check_lease()
1982 status = ops->renew_lease(clp, cred); in nfs4_check_lease()
1983 put_cred(cred); in nfs4_check_lease()
2052 const struct cred *cred; in nfs4_establish_lease() local
2060 cred = nfs4_get_clid_cred(clp); in nfs4_establish_lease()
2061 if (cred == NULL) in nfs4_establish_lease()
2063 status = ops->establish_clid(clp, cred); in nfs4_establish_lease()
2064 put_cred(cred); in nfs4_establish_lease()
2110 static int nfs4_try_migration(struct nfs_server *server, const struct cred *cred) in nfs4_try_migration() argument
2136 page, cred); in nfs4_try_migration()
2191 const struct cred *cred; in nfs4_handle_migration() local
2196 cred = ops->get_state_renewal_cred(clp); in nfs4_handle_migration()
2197 if (cred == NULL) in nfs4_handle_migration()
2215 status = nfs4_try_migration(server, cred); in nfs4_handle_migration()
2217 put_cred(cred); in nfs4_handle_migration()
2223 put_cred(cred); in nfs4_handle_migration()
2237 const struct cred *cred; in nfs4_handle_lease_moved() local
2242 cred = ops->get_state_renewal_cred(clp); in nfs4_handle_lease_moved()
2243 if (cred == NULL) in nfs4_handle_lease_moved()
2260 status = nfs4_proc_fsid_present(inode, cred); in nfs4_handle_lease_moved()
2263 if (nfs4_try_migration(server, cred) == -NFS4ERR_LEASE_MOVED) in nfs4_handle_lease_moved()
2270 put_cred(cred); in nfs4_handle_lease_moved()
2293 const struct cred *cred; in nfs4_discover_server_trunking() local
2304 cred = nfs4_get_clid_cred(clp); in nfs4_discover_server_trunking()
2305 if (cred == NULL) in nfs4_discover_server_trunking()
2308 status = ops->detect_trunking(clp, result, cred); in nfs4_discover_server_trunking()
2309 put_cred(cred); in nfs4_discover_server_trunking()
2499 const struct cred *cred; in nfs4_reset_session() local
2507 cred = nfs4_get_clid_cred(clp); in nfs4_reset_session()
2508 status = nfs4_proc_destroy_session(clp->cl_session, cred); in nfs4_reset_session()
2526 status = nfs4_proc_create_session(clp, cred); in nfs4_reset_session()
2537 put_cred(cred); in nfs4_reset_session()
2543 const struct cred *cred; in nfs4_bind_conn_to_session() local
2551 cred = nfs4_get_clid_cred(clp); in nfs4_bind_conn_to_session()
2552 ret = nfs4_proc_bind_conn_to_session(clp, cred); in nfs4_bind_conn_to_session()
2553 put_cred(cred); in nfs4_bind_conn_to_session()