• Home
  • Raw
  • Download

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
511 sp->so_cred = get_cred(cred); in nfs4_alloc_state_owner()
579 const struct cred *cred, in nfs4_get_state_owner() argument
586 sp = nfs4_find_state_owner_locked(server, cred); in nfs4_get_state_owner()
590 new = nfs4_alloc_state_owner(server, cred, gfp_flags); in nfs4_get_state_owner()
1048 nfs4_stateid *dst, const struct cred **cred) in nfs4_select_rw_stateid() argument
1054 if (cred != NULL) in nfs4_select_rw_stateid()
1055 *cred = NULL; in nfs4_select_rw_stateid()
1061 if (nfs4_copy_delegation_stateid(state->inode, fmode, dst, cred)) { in nfs4_select_rw_stateid()
1810 const struct cred *cred) in nfs4_reclaim_complete() argument
1814 return ops->reclaim_complete(clp, cred); in nfs4_reclaim_complete()
1861 const struct cred *cred; in nfs4_state_end_reclaim_reboot() local
1867 cred = nfs4_get_clid_cred(clp); in nfs4_state_end_reclaim_reboot()
1868 err = nfs4_reclaim_complete(clp, ops, cred); in nfs4_state_end_reclaim_reboot()
1869 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()
2042 const struct cred *cred; in nfs4_establish_lease() local
2050 cred = nfs4_get_clid_cred(clp); in nfs4_establish_lease()
2051 if (cred == NULL) in nfs4_establish_lease()
2053 status = ops->establish_clid(clp, cred); in nfs4_establish_lease()
2054 put_cred(cred); in nfs4_establish_lease()
2101 static int nfs4_try_migration(struct nfs_server *server, const struct cred *cred) in nfs4_try_migration() argument
2129 page, cred); in nfs4_try_migration()
2184 const struct cred *cred; in nfs4_handle_migration() local
2189 cred = ops->get_state_renewal_cred(clp); in nfs4_handle_migration()
2190 if (cred == NULL) in nfs4_handle_migration()
2208 status = nfs4_try_migration(server, cred); in nfs4_handle_migration()
2210 put_cred(cred); in nfs4_handle_migration()
2216 put_cred(cred); in nfs4_handle_migration()
2230 const struct cred *cred; in nfs4_handle_lease_moved() local
2235 cred = ops->get_state_renewal_cred(clp); in nfs4_handle_lease_moved()
2236 if (cred == NULL) in nfs4_handle_lease_moved()
2253 status = nfs4_proc_fsid_present(inode, cred); in nfs4_handle_lease_moved()
2256 if (nfs4_try_migration(server, cred) == -NFS4ERR_LEASE_MOVED) in nfs4_handle_lease_moved()
2263 put_cred(cred); in nfs4_handle_lease_moved()
2286 const struct cred *cred; in nfs4_discover_server_trunking() local
2297 cred = nfs4_get_clid_cred(clp); in nfs4_discover_server_trunking()
2298 if (cred == NULL) in nfs4_discover_server_trunking()
2301 status = ops->detect_trunking(clp, result, cred); in nfs4_discover_server_trunking()
2302 put_cred(cred); in nfs4_discover_server_trunking()
2492 const struct cred *cred; in nfs4_reset_session() local
2500 cred = nfs4_get_clid_cred(clp); in nfs4_reset_session()
2501 status = nfs4_proc_destroy_session(clp->cl_session, cred); in nfs4_reset_session()
2519 status = nfs4_proc_create_session(clp, cred); in nfs4_reset_session()
2530 put_cred(cred); in nfs4_reset_session()
2536 const struct cred *cred; in nfs4_bind_conn_to_session() local
2544 cred = nfs4_get_clid_cred(clp); in nfs4_bind_conn_to_session()
2545 ret = nfs4_proc_bind_conn_to_session(clp, cred); in nfs4_bind_conn_to_session()
2546 put_cred(cred); in nfs4_bind_conn_to_session()