Lines Matching refs:cred
83 static int nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred,
2158 static int nfs4_opendata_access(struct rpc_cred *cred, in nfs4_opendata_access() argument
2182 cache.cred = cred; in nfs4_opendata_access()
2326 struct rpc_cred *cred; in nfs41_check_delegation_stateid() local
2338 cred = get_rpccred(delegation->cred); in nfs41_check_delegation_stateid()
2340 status = nfs41_test_stateid(server, &stateid, cred); in nfs41_check_delegation_stateid()
2347 nfs41_free_stateid(server, &stateid, cred); in nfs41_check_delegation_stateid()
2351 put_rpccred(cred); in nfs41_check_delegation_stateid()
2366 struct rpc_cred *cred = state->owner->so_cred; in nfs41_check_open_stateid() local
2375 status = nfs41_test_stateid(server, stateid, cred); in nfs41_check_open_stateid()
2381 nfs41_free_stateid(server, stateid, cred); in nfs41_check_open_stateid()
2498 struct rpc_cred *cred = ctx->cred; in _nfs4_do_open() local
2509 sp = nfs4_get_state_owner(server, cred, GFP_KERNEL); in _nfs4_do_open()
2556 status = nfs4_do_setattr(state->inode, cred, in _nfs4_do_open()
2656 static int _nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, in _nfs4_do_setattr() argument
2678 .rpc_cred = cred, in _nfs4_do_setattr()
2716 static int nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, in nfs4_do_setattr() argument
2728 err = _nfs4_do_setattr(inode, cred, fattr, sattr, state, ilabel, olabel); in nfs4_do_setattr()
3432 struct rpc_cred *cred = NULL; in nfs4_proc_setattr() local
3458 cred = ctx->cred; in nfs4_proc_setattr()
3467 status = nfs4_do_setattr(inode, cred, fattr, sattr, state, NULL, label); in nfs4_proc_setattr()
3602 .rpc_cred = entry->cred, in _nfs4_proc_access()
4046 static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, in _nfs4_proc_readdir() argument
4063 .rpc_cred = cred, in _nfs4_proc_readdir()
4090 static int nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, in nfs4_proc_readdir() argument
4096 err = _nfs4_proc_readdir(dentry, cred, cookie, in nfs4_proc_readdir()
4573 static int nfs4_proc_async_renew(struct nfs_client *clp, struct rpc_cred *cred, unsigned renew_flag… in nfs4_proc_async_renew() argument
4578 .rpc_cred = cred, in nfs4_proc_async_renew()
4595 static int nfs4_proc_renew(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_renew() argument
4600 .rpc_cred = cred, in nfs4_proc_renew()
5017 struct rpc_cred *cred; in nfs4_set_security_label() local
5031 cred = rpc_lookup_cred(); in nfs4_set_security_label()
5032 if (IS_ERR(cred)) in nfs4_set_security_label()
5033 return PTR_ERR(cred); in nfs4_set_security_label()
5047 put_rpccred(cred); in nfs4_set_security_label()
5215 unsigned short port, struct rpc_cred *cred, in nfs4_proc_setclientid() argument
5228 .rpc_cred = cred, in nfs4_proc_setclientid()
5291 struct rpc_cred *cred) in nfs4_proc_setclientid_confirm() argument
5296 .rpc_cred = cred, in nfs4_proc_setclientid_confirm()
5390 static int _nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *s… in _nfs4_proc_delegreturn() argument
5397 .rpc_cred = cred, in _nfs4_proc_delegreturn()
5446 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, … in nfs4_proc_delegreturn() argument
5452 err = _nfs4_proc_delegreturn(inode, cred, stateid, issync); in nfs4_proc_delegreturn()
5652 .rpc_cred = ctx->cred, in nfs4_do_unlck()
6035 struct rpc_cred *cred = lsp->ls_state->owner->so_cred; in nfs41_check_expired_locks() local
6039 cred); in nfs41_check_expired_locks()
6047 cred); in nfs41_check_expired_locks()
6455 struct page *page, struct rpc_cred *cred) in _nfs40_proc_get_locations() argument
6479 .rpc_cred = cred, in _nfs40_proc_get_locations()
6513 struct page *page, struct rpc_cred *cred) in _nfs41_proc_get_locations() argument
6534 .rpc_cred = cred, in _nfs41_proc_get_locations()
6573 struct page *page, struct rpc_cred *cred) in nfs4_proc_get_locations() argument
6589 status = ops->get_locations(inode, locations, page, cred); in nfs4_proc_get_locations()
6604 static int _nfs40_proc_fsid_present(struct inode *inode, struct rpc_cred *cred) in _nfs40_proc_fsid_present() argument
6621 .rpc_cred = cred, in _nfs40_proc_fsid_present()
6651 static int _nfs41_proc_fsid_present(struct inode *inode, struct rpc_cred *cred) in _nfs41_proc_fsid_present() argument
6664 .rpc_cred = cred, in _nfs41_proc_fsid_present()
6699 int nfs4_proc_fsid_present(struct inode *inode, struct rpc_cred *cred) in nfs4_proc_fsid_present() argument
6715 status = ops->fsid_present(inode, cred); in nfs4_proc_fsid_present()
6746 struct rpc_cred *cred = NULL; in _nfs4_proc_secinfo() local
6750 cred = nfs4_get_clid_cred(NFS_SERVER(dir)->nfs_client); in _nfs4_proc_secinfo()
6751 msg.rpc_cred = cred; in _nfs4_proc_secinfo()
6763 if (cred) in _nfs4_proc_secinfo()
6764 put_rpccred(cred); in _nfs4_proc_secinfo()
6834 int nfs4_proc_bind_conn_to_session(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_bind_conn_to_session() argument
6847 .rpc_cred = cred, in nfs4_proc_bind_conn_to_session()
7002 static int _nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred, in _nfs4_proc_exchange_id() argument
7026 .rpc_cred = cred, in _nfs4_proc_exchange_id()
7147 int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_exchange_id() argument
7155 status = _nfs4_proc_exchange_id(clp, cred, SP4_MACH_CRED); in nfs4_proc_exchange_id()
7161 return _nfs4_proc_exchange_id(clp, cred, SP4_NONE); in nfs4_proc_exchange_id()
7165 struct rpc_cred *cred) in _nfs4_proc_destroy_clientid() argument
7170 .rpc_cred = cred, in _nfs4_proc_destroy_clientid()
7183 struct rpc_cred *cred) in nfs4_proc_destroy_clientid() argument
7189 ret = _nfs4_proc_destroy_clientid(clp, cred); in nfs4_proc_destroy_clientid()
7204 struct rpc_cred *cred; in nfs4_destroy_clientid() local
7213 cred = nfs4_get_clid_cred(clp); in nfs4_destroy_clientid()
7214 ret = nfs4_proc_destroy_clientid(clp, cred); in nfs4_destroy_clientid()
7215 if (cred) in nfs4_destroy_clientid()
7216 put_rpccred(cred); in nfs4_destroy_clientid()
7436 struct rpc_cred *cred) in _nfs4_proc_create_session() argument
7451 .rpc_cred = cred, in _nfs4_proc_create_session()
7488 int nfs4_proc_create_session(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_create_session() argument
7496 status = _nfs4_proc_create_session(clp, cred); in nfs4_proc_create_session()
7519 struct rpc_cred *cred) in nfs4_proc_destroy_session() argument
7524 .rpc_cred = cred, in nfs4_proc_destroy_session()
7621 struct rpc_cred *cred, in _nfs41_proc_sequence() argument
7627 .rpc_cred = cred, in _nfs41_proc_sequence()
7654 static int nfs41_proc_async_sequence(struct nfs_client *clp, struct rpc_cred *cred, unsigned renew_… in nfs41_proc_async_sequence() argument
7661 task = _nfs41_proc_sequence(clp, cred, false); in nfs41_proc_async_sequence()
7670 static int nfs4_proc_sequence(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_sequence() argument
7675 task = _nfs41_proc_sequence(clp, cred, true); in nfs4_proc_sequence()
7764 struct rpc_cred *cred) in nfs41_proc_reclaim_complete() argument
7770 .rpc_cred = cred, in nfs41_proc_reclaim_complete()
8005 .rpc_cred = lgp->cred, in nfs4_proc_layoutget()
8124 .rpc_cred = lrp->cred, in nfs4_proc_layoutreturn()
8158 struct rpc_cred *cred) in _nfs4_proc_getdeviceinfo() argument
8172 .rpc_cred = cred, in _nfs4_proc_getdeviceinfo()
8190 struct rpc_cred *cred) in nfs4_proc_getdeviceinfo() argument
8197 _nfs4_proc_getdeviceinfo(server, pdev, cred), in nfs4_proc_getdeviceinfo()
8248 put_rpccred(data->cred); in nfs4_layoutcommit_release()
8266 .rpc_cred = data->cred, in nfs4_proc_layoutcommit()
8324 struct rpc_cred *cred = NULL; in _nfs41_proc_secinfo_no_name() local
8329 cred = nfs4_get_clid_cred(server->nfs_client); in _nfs41_proc_secinfo_no_name()
8330 msg.rpc_cred = cred; in _nfs41_proc_secinfo_no_name()
8338 if (cred) in _nfs41_proc_secinfo_no_name()
8339 put_rpccred(cred); in _nfs41_proc_secinfo_no_name()
8452 struct rpc_cred *cred) in _nfs41_test_stateid() argument
8463 .rpc_cred = cred, in _nfs41_test_stateid()
8496 struct rpc_cred *cred) in nfs41_test_stateid() argument
8501 err = _nfs41_test_stateid(server, stateid, cred); in nfs41_test_stateid()
8550 struct rpc_cred *cred, in _nfs41_free_stateid() argument
8555 .rpc_cred = cred, in _nfs41_free_stateid()
8598 struct rpc_cred *cred) in nfs41_free_stateid() argument
8603 task = _nfs41_free_stateid(server, stateid, cred, true); in nfs41_free_stateid()
8617 struct rpc_cred *cred = lsp->ls_state->owner->so_cred; in nfs41_free_lock_state() local
8619 task = _nfs41_free_stateid(server, &lsp->ls_stateid, cred, false); in nfs41_free_lock_state()