Lines Matching refs:cred
338 if (ds->ds_clp && !mirror->cred && in ff_layout_update_mirror_cred()
341 struct rpc_cred *cred; in ff_layout_update_mirror_cred() local
348 cred = auth->au_ops->lookup_cred(auth, &acred, 0); in ff_layout_update_mirror_cred()
349 if (IS_ERR(cred)) { in ff_layout_update_mirror_cred()
351 __func__, PTR_ERR(cred)); in ff_layout_update_mirror_cred()
352 return PTR_ERR(cred); in ff_layout_update_mirror_cred()
354 if (cmpxchg(&mirror->cred, NULL, cred)) in ff_layout_update_mirror_cred()
355 put_rpccred(cred); in ff_layout_update_mirror_cred()
462 struct rpc_cred *cred = ERR_PTR(-EINVAL); in ff_layout_get_ds_cred() local
467 if (mirror && mirror->cred) in ff_layout_get_ds_cred()
468 cred = mirror->cred; in ff_layout_get_ds_cred()
470 cred = mdscred; in ff_layout_get_ds_cred()
472 return cred; in ff_layout_get_ds_cred()