Lines Matching refs:cred

84 static int nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred,
2159 static int nfs4_opendata_access(struct rpc_cred *cred, in nfs4_opendata_access() argument
2183 cache.cred = cred; in nfs4_opendata_access()
2329 struct rpc_cred *cred; in nfs41_check_delegation_stateid() local
2341 cred = get_rpccred(delegation->cred); in nfs41_check_delegation_stateid()
2343 status = nfs41_test_stateid(server, &stateid, cred); in nfs41_check_delegation_stateid()
2350 nfs41_free_stateid(server, &stateid, cred); in nfs41_check_delegation_stateid()
2354 put_rpccred(cred); in nfs41_check_delegation_stateid()
2369 struct rpc_cred *cred = state->owner->so_cred; in nfs41_check_open_stateid() local
2378 status = nfs41_test_stateid(server, stateid, cred); in nfs41_check_open_stateid()
2384 nfs41_free_stateid(server, stateid, cred); in nfs41_check_open_stateid()
2501 struct rpc_cred *cred = ctx->cred; in _nfs4_do_open() local
2510 sp = nfs4_get_state_owner(server, cred, GFP_KERNEL); in _nfs4_do_open()
2557 status = nfs4_do_setattr(state->inode, cred, in _nfs4_do_open()
2649 static int _nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, in _nfs4_do_setattr() argument
2671 .rpc_cred = cred, in _nfs4_do_setattr()
2709 static int nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, in nfs4_do_setattr() argument
2721 err = _nfs4_do_setattr(inode, cred, fattr, sattr, state, ilabel, olabel); in nfs4_do_setattr()
3420 struct rpc_cred *cred = NULL; in nfs4_proc_setattr() local
3446 cred = ctx->cred; in nfs4_proc_setattr()
3455 status = nfs4_do_setattr(inode, cred, fattr, sattr, state, NULL, label); in nfs4_proc_setattr()
3590 .rpc_cred = entry->cred, in _nfs4_proc_access()
4034 static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, in _nfs4_proc_readdir() argument
4051 .rpc_cred = cred, in _nfs4_proc_readdir()
4072 static int nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, in nfs4_proc_readdir() argument
4078 err = _nfs4_proc_readdir(dentry, cred, cookie, in nfs4_proc_readdir()
4555 static int nfs4_proc_async_renew(struct nfs_client *clp, struct rpc_cred *cred, unsigned renew_flag… in nfs4_proc_async_renew() argument
4560 .rpc_cred = cred, in nfs4_proc_async_renew()
4577 static int nfs4_proc_renew(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_renew() argument
4582 .rpc_cred = cred, in nfs4_proc_renew()
4994 struct rpc_cred *cred; in nfs4_set_security_label() local
5008 cred = rpc_lookup_cred(); in nfs4_set_security_label()
5009 if (IS_ERR(cred)) in nfs4_set_security_label()
5010 return PTR_ERR(cred); in nfs4_set_security_label()
5024 put_rpccred(cred); in nfs4_set_security_label()
5192 unsigned short port, struct rpc_cred *cred, in nfs4_proc_setclientid() argument
5205 .rpc_cred = cred, in nfs4_proc_setclientid()
5267 struct rpc_cred *cred) in nfs4_proc_setclientid_confirm() argument
5272 .rpc_cred = cred, in nfs4_proc_setclientid_confirm()
5366 static int _nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *s… in _nfs4_proc_delegreturn() argument
5373 .rpc_cred = cred, in _nfs4_proc_delegreturn()
5422 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, … in nfs4_proc_delegreturn() argument
5428 err = _nfs4_proc_delegreturn(inode, cred, stateid, issync); in nfs4_proc_delegreturn()
5628 .rpc_cred = ctx->cred, in nfs4_do_unlck()
6013 struct rpc_cred *cred = lsp->ls_state->owner->so_cred; in nfs41_check_expired_locks() local
6017 cred); in nfs41_check_expired_locks()
6025 cred); in nfs41_check_expired_locks()
6422 struct page *page, struct rpc_cred *cred) in _nfs40_proc_get_locations() argument
6446 .rpc_cred = cred, in _nfs40_proc_get_locations()
6480 struct page *page, struct rpc_cred *cred) in _nfs41_proc_get_locations() argument
6501 .rpc_cred = cred, in _nfs41_proc_get_locations()
6540 struct page *page, struct rpc_cred *cred) in nfs4_proc_get_locations() argument
6556 status = ops->get_locations(inode, locations, page, cred); in nfs4_proc_get_locations()
6571 static int _nfs40_proc_fsid_present(struct inode *inode, struct rpc_cred *cred) in _nfs40_proc_fsid_present() argument
6588 .rpc_cred = cred, in _nfs40_proc_fsid_present()
6618 static int _nfs41_proc_fsid_present(struct inode *inode, struct rpc_cred *cred) in _nfs41_proc_fsid_present() argument
6631 .rpc_cred = cred, in _nfs41_proc_fsid_present()
6666 int nfs4_proc_fsid_present(struct inode *inode, struct rpc_cred *cred) in nfs4_proc_fsid_present() argument
6682 status = ops->fsid_present(inode, cred); in nfs4_proc_fsid_present()
6713 struct rpc_cred *cred = NULL; in _nfs4_proc_secinfo() local
6717 cred = nfs4_get_clid_cred(NFS_SERVER(dir)->nfs_client); in _nfs4_proc_secinfo()
6718 msg.rpc_cred = cred; in _nfs4_proc_secinfo()
6730 if (cred) in _nfs4_proc_secinfo()
6731 put_rpccred(cred); in _nfs4_proc_secinfo()
6801 int nfs4_proc_bind_conn_to_session(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_bind_conn_to_session() argument
6814 .rpc_cred = cred, in nfs4_proc_bind_conn_to_session()
6969 static int _nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred, in _nfs4_proc_exchange_id() argument
6993 .rpc_cred = cred, in _nfs4_proc_exchange_id()
7114 int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_exchange_id() argument
7122 status = _nfs4_proc_exchange_id(clp, cred, SP4_MACH_CRED); in nfs4_proc_exchange_id()
7128 return _nfs4_proc_exchange_id(clp, cred, SP4_NONE); in nfs4_proc_exchange_id()
7132 struct rpc_cred *cred) in _nfs4_proc_destroy_clientid() argument
7137 .rpc_cred = cred, in _nfs4_proc_destroy_clientid()
7150 struct rpc_cred *cred) in nfs4_proc_destroy_clientid() argument
7156 ret = _nfs4_proc_destroy_clientid(clp, cred); in nfs4_proc_destroy_clientid()
7171 struct rpc_cred *cred; in nfs4_destroy_clientid() local
7180 cred = nfs4_get_clid_cred(clp); in nfs4_destroy_clientid()
7181 ret = nfs4_proc_destroy_clientid(clp, cred); in nfs4_destroy_clientid()
7182 if (cred) in nfs4_destroy_clientid()
7183 put_rpccred(cred); in nfs4_destroy_clientid()
7403 struct rpc_cred *cred) in _nfs4_proc_create_session() argument
7418 .rpc_cred = cred, in _nfs4_proc_create_session()
7447 int nfs4_proc_create_session(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_create_session() argument
7455 status = _nfs4_proc_create_session(clp, cred); in nfs4_proc_create_session()
7478 struct rpc_cred *cred) in nfs4_proc_destroy_session() argument
7483 .rpc_cred = cred, in nfs4_proc_destroy_session()
7580 struct rpc_cred *cred, in _nfs41_proc_sequence() argument
7586 .rpc_cred = cred, in _nfs41_proc_sequence()
7613 static int nfs41_proc_async_sequence(struct nfs_client *clp, struct rpc_cred *cred, unsigned renew_… in nfs41_proc_async_sequence() argument
7620 task = _nfs41_proc_sequence(clp, cred, false); in nfs41_proc_async_sequence()
7629 static int nfs4_proc_sequence(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_sequence() argument
7634 task = _nfs41_proc_sequence(clp, cred, true); in nfs4_proc_sequence()
7717 struct rpc_cred *cred) in nfs41_proc_reclaim_complete() argument
7723 .rpc_cred = cred, in nfs41_proc_reclaim_complete()
7959 .rpc_cred = lgp->cred, in nfs4_proc_layoutget()
8078 .rpc_cred = lrp->cred, in nfs4_proc_layoutreturn()
8112 struct rpc_cred *cred) in _nfs4_proc_getdeviceinfo() argument
8126 .rpc_cred = cred, in _nfs4_proc_getdeviceinfo()
8144 struct rpc_cred *cred) in nfs4_proc_getdeviceinfo() argument
8151 _nfs4_proc_getdeviceinfo(server, pdev, cred), in nfs4_proc_getdeviceinfo()
8202 put_rpccred(data->cred); in nfs4_layoutcommit_release()
8220 .rpc_cred = data->cred, in nfs4_proc_layoutcommit()
8278 struct rpc_cred *cred = NULL; in _nfs41_proc_secinfo_no_name() local
8283 cred = nfs4_get_clid_cred(server->nfs_client); in _nfs41_proc_secinfo_no_name()
8284 msg.rpc_cred = cred; in _nfs41_proc_secinfo_no_name()
8292 if (cred) in _nfs41_proc_secinfo_no_name()
8293 put_rpccred(cred); in _nfs41_proc_secinfo_no_name()
8406 struct rpc_cred *cred) in _nfs41_test_stateid() argument
8417 .rpc_cred = cred, in _nfs41_test_stateid()
8450 struct rpc_cred *cred) in nfs41_test_stateid() argument
8455 err = _nfs41_test_stateid(server, stateid, cred); in nfs41_test_stateid()
8504 struct rpc_cred *cred, in _nfs41_free_stateid() argument
8509 .rpc_cred = cred, in _nfs41_free_stateid()
8552 struct rpc_cred *cred) in nfs41_free_stateid() argument
8557 task = _nfs41_free_stateid(server, stateid, cred, true); in nfs41_free_stateid()
8571 struct rpc_cred *cred = lsp->ls_state->owner->so_cred; in nfs41_free_lock_state() local
8573 task = _nfs41_free_stateid(server, &lsp->ls_stateid, cred, false); in nfs41_free_lock_state()