Lines Matching refs:cred

35 	put_cred(delegation->cred);  in __nfs_free_delegation()
36 delegation->cred = NULL; in __nfs_free_delegation()
230 void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred, in nfs_inode_reclaim_delegation() argument
236 const struct cred *oldcred = NULL; in nfs_inode_reclaim_delegation()
246 oldcred = delegation->cred; in nfs_inode_reclaim_delegation()
247 delegation->cred = get_cred(cred); in nfs_inode_reclaim_delegation()
260 nfs_inode_set_delegation(inode, cred, type, stateid, pagemod_limit); in nfs_inode_reclaim_delegation()
265 const struct cred *cred; in nfs_do_return_delegation() local
270 cred = get_cred(delegation->cred); in nfs_do_return_delegation()
272 res = nfs4_proc_delegreturn(inode, cred, in nfs_do_return_delegation()
275 put_cred(cred); in nfs_do_return_delegation()
391 const struct cred *cred) in nfs_update_delegation_cred() argument
393 const struct cred *old; in nfs_update_delegation_cred()
395 if (cred_fscmp(delegation->cred, cred) != 0) { in nfs_update_delegation_cred()
396 old = xchg(&delegation->cred, get_cred(cred)); in nfs_update_delegation_cred()
412 nfs_update_delegation_cred(delegation, update->cred); in nfs_update_inplace_delegation()
430 int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred, in nfs_inode_set_delegation() argument
450 delegation->cred = get_cred(cred); in nfs_inode_set_delegation()
1279 const struct cred *cred) in nfs_delegation_test_free_expired() argument
1285 if (!cred) in nfs_delegation_test_free_expired()
1287 status = ops->test_and_free_expired(server, stateid, cred); in nfs_delegation_test_free_expired()
1297 const struct cred *cred; in nfs_server_reap_expired_delegations() local
1314 cred = get_cred_rcu(delegation->cred); in nfs_server_reap_expired_delegations()
1319 nfs_delegation_test_free_expired(inode, &stateid, cred); in nfs_server_reap_expired_delegations()
1320 put_cred(cred); in nfs_server_reap_expired_delegations()
1431 nfs4_stateid *dst, const struct cred **cred) in nfs4_copy_delegation_stateid() argument
1447 if (cred) in nfs4_copy_delegation_stateid()
1448 *cred = get_cred(delegation->cred); in nfs4_copy_delegation_stateid()