Lines Matching refs:cred

85 static int nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred,
2039 static int nfs4_opendata_access(struct rpc_cred *cred, in nfs4_opendata_access() argument
2063 cache.cred = cred; in nfs4_opendata_access()
2209 struct rpc_cred *cred; in nfs41_check_delegation_stateid() local
2221 cred = get_rpccred(delegation->cred); in nfs41_check_delegation_stateid()
2223 status = nfs41_test_stateid(server, &stateid, cred); in nfs41_check_delegation_stateid()
2230 nfs41_free_stateid(server, &stateid, cred); in nfs41_check_delegation_stateid()
2234 put_rpccred(cred); in nfs41_check_delegation_stateid()
2249 struct rpc_cred *cred = state->owner->so_cred; in nfs41_check_open_stateid() local
2258 status = nfs41_test_stateid(server, stateid, cred); in nfs41_check_open_stateid()
2264 nfs41_free_stateid(server, stateid, cred); in nfs41_check_open_stateid()
2371 struct rpc_cred *cred = ctx->cred; in _nfs4_do_open() local
2380 sp = nfs4_get_state_owner(server, cred, GFP_KERNEL); in _nfs4_do_open()
2427 status = nfs4_do_setattr(state->inode, cred, in _nfs4_do_open()
2519 static int _nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, in _nfs4_do_setattr() argument
2541 .rpc_cred = cred, in _nfs4_do_setattr()
2579 static int nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, in nfs4_do_setattr() argument
2591 err = _nfs4_do_setattr(inode, cred, fattr, sattr, state, ilabel, olabel); in nfs4_do_setattr()
3267 struct rpc_cred *cred = NULL; in nfs4_proc_setattr() local
3293 cred = ctx->cred; in nfs4_proc_setattr()
3302 status = nfs4_do_setattr(inode, cred, fattr, sattr, state, NULL, label); in nfs4_proc_setattr()
3435 .rpc_cred = entry->cred, in _nfs4_proc_access()
3880 static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, in _nfs4_proc_readdir() argument
3897 .rpc_cred = cred, in _nfs4_proc_readdir()
3918 static int nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, in nfs4_proc_readdir() argument
3924 err = _nfs4_proc_readdir(dentry, cred, cookie, in nfs4_proc_readdir()
4401 static int nfs4_proc_async_renew(struct nfs_client *clp, struct rpc_cred *cred, unsigned renew_flag… in nfs4_proc_async_renew() argument
4406 .rpc_cred = cred, in nfs4_proc_async_renew()
4423 static int nfs4_proc_renew(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_renew() argument
4428 .rpc_cred = cred, in nfs4_proc_renew()
4841 struct rpc_cred *cred; in nfs4_set_security_label() local
4855 cred = rpc_lookup_cred(); in nfs4_set_security_label()
4856 if (IS_ERR(cred)) in nfs4_set_security_label()
4857 return PTR_ERR(cred); in nfs4_set_security_label()
4871 put_rpccred(cred); in nfs4_set_security_label()
5050 unsigned short port, struct rpc_cred *cred, in nfs4_proc_setclientid() argument
5063 .rpc_cred = cred, in nfs4_proc_setclientid()
5126 struct rpc_cred *cred) in nfs4_proc_setclientid_confirm() argument
5131 .rpc_cred = cred, in nfs4_proc_setclientid_confirm()
5223 static int _nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *s… in _nfs4_proc_delegreturn() argument
5230 .rpc_cred = cred, in _nfs4_proc_delegreturn()
5279 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, … in nfs4_proc_delegreturn() argument
5285 err = _nfs4_proc_delegreturn(inode, cred, stateid, issync); in nfs4_proc_delegreturn()
5496 .rpc_cred = ctx->cred, in nfs4_do_unlck()
5881 struct rpc_cred *cred = lsp->ls_state->owner->so_cred; in nfs41_check_expired_locks() local
5885 cred); in nfs41_check_expired_locks()
5893 cred); in nfs41_check_expired_locks()
6284 struct page *page, struct rpc_cred *cred) in _nfs40_proc_get_locations() argument
6308 .rpc_cred = cred, in _nfs40_proc_get_locations()
6342 struct page *page, struct rpc_cred *cred) in _nfs41_proc_get_locations() argument
6363 .rpc_cred = cred, in _nfs41_proc_get_locations()
6402 struct page *page, struct rpc_cred *cred) in nfs4_proc_get_locations() argument
6418 status = ops->get_locations(inode, locations, page, cred); in nfs4_proc_get_locations()
6433 static int _nfs40_proc_fsid_present(struct inode *inode, struct rpc_cred *cred) in _nfs40_proc_fsid_present() argument
6450 .rpc_cred = cred, in _nfs40_proc_fsid_present()
6480 static int _nfs41_proc_fsid_present(struct inode *inode, struct rpc_cred *cred) in _nfs41_proc_fsid_present() argument
6493 .rpc_cred = cred, in _nfs41_proc_fsid_present()
6528 int nfs4_proc_fsid_present(struct inode *inode, struct rpc_cred *cred) in nfs4_proc_fsid_present() argument
6544 status = ops->fsid_present(inode, cred); in nfs4_proc_fsid_present()
6575 struct rpc_cred *cred = NULL; in _nfs4_proc_secinfo() local
6579 cred = nfs4_get_clid_cred(NFS_SERVER(dir)->nfs_client); in _nfs4_proc_secinfo()
6580 msg.rpc_cred = cred; in _nfs4_proc_secinfo()
6592 if (cred) in _nfs4_proc_secinfo()
6593 put_rpccred(cred); in _nfs4_proc_secinfo()
6663 int nfs4_proc_bind_conn_to_session(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_bind_conn_to_session() argument
6676 .rpc_cred = cred, in nfs4_proc_bind_conn_to_session()
6831 static int _nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred, in _nfs4_proc_exchange_id() argument
6855 .rpc_cred = cred, in _nfs4_proc_exchange_id()
6971 int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_exchange_id() argument
6979 status = _nfs4_proc_exchange_id(clp, cred, SP4_MACH_CRED); in nfs4_proc_exchange_id()
6985 return _nfs4_proc_exchange_id(clp, cred, SP4_NONE); in nfs4_proc_exchange_id()
6989 struct rpc_cred *cred) in _nfs4_proc_destroy_clientid() argument
6994 .rpc_cred = cred, in _nfs4_proc_destroy_clientid()
7007 struct rpc_cred *cred) in nfs4_proc_destroy_clientid() argument
7013 ret = _nfs4_proc_destroy_clientid(clp, cred); in nfs4_proc_destroy_clientid()
7028 struct rpc_cred *cred; in nfs4_destroy_clientid() local
7037 cred = nfs4_get_clid_cred(clp); in nfs4_destroy_clientid()
7038 ret = nfs4_proc_destroy_clientid(clp, cred); in nfs4_destroy_clientid()
7039 if (cred) in nfs4_destroy_clientid()
7040 put_rpccred(cred); in nfs4_destroy_clientid()
7260 struct rpc_cred *cred) in _nfs4_proc_create_session() argument
7275 .rpc_cred = cred, in _nfs4_proc_create_session()
7304 int nfs4_proc_create_session(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_create_session() argument
7312 status = _nfs4_proc_create_session(clp, cred); in nfs4_proc_create_session()
7335 struct rpc_cred *cred) in nfs4_proc_destroy_session() argument
7340 .rpc_cred = cred, in nfs4_proc_destroy_session()
7437 struct rpc_cred *cred, in _nfs41_proc_sequence() argument
7443 .rpc_cred = cred, in _nfs41_proc_sequence()
7470 static int nfs41_proc_async_sequence(struct nfs_client *clp, struct rpc_cred *cred, unsigned renew_… in nfs41_proc_async_sequence() argument
7477 task = _nfs41_proc_sequence(clp, cred, false); in nfs41_proc_async_sequence()
7486 static int nfs4_proc_sequence(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_proc_sequence() argument
7491 task = _nfs41_proc_sequence(clp, cred, true); in nfs4_proc_sequence()
7579 struct rpc_cred *cred) in nfs41_proc_reclaim_complete() argument
7585 .rpc_cred = cred, in nfs41_proc_reclaim_complete()
7801 .rpc_cred = lgp->cred, in nfs4_proc_layoutget()
7920 .rpc_cred = lrp->cred, in nfs4_proc_layoutreturn()
7954 struct rpc_cred *cred) in _nfs4_proc_getdeviceinfo() argument
7968 .rpc_cred = cred, in _nfs4_proc_getdeviceinfo()
7986 struct rpc_cred *cred) in nfs4_proc_getdeviceinfo() argument
7993 _nfs4_proc_getdeviceinfo(server, pdev, cred), in nfs4_proc_getdeviceinfo()
8044 put_rpccred(data->cred); in nfs4_layoutcommit_release()
8062 .rpc_cred = data->cred, in nfs4_proc_layoutcommit()
8121 struct rpc_cred *cred = NULL; in _nfs41_proc_secinfo_no_name() local
8126 cred = nfs4_get_clid_cred(server->nfs_client); in _nfs41_proc_secinfo_no_name()
8127 msg.rpc_cred = cred; in _nfs41_proc_secinfo_no_name()
8135 if (cred) in _nfs41_proc_secinfo_no_name()
8136 put_rpccred(cred); in _nfs41_proc_secinfo_no_name()
8249 struct rpc_cred *cred) in _nfs41_test_stateid() argument
8260 .rpc_cred = cred, in _nfs41_test_stateid()
8293 struct rpc_cred *cred) in nfs41_test_stateid() argument
8298 err = _nfs41_test_stateid(server, stateid, cred); in nfs41_test_stateid()
8347 struct rpc_cred *cred, in _nfs41_free_stateid() argument
8352 .rpc_cred = cred, in _nfs41_free_stateid()
8395 struct rpc_cred *cred) in nfs41_free_stateid() argument
8400 task = _nfs41_free_stateid(server, stateid, cred, true); in nfs41_free_stateid()
8414 struct rpc_cred *cred = lsp->ls_state->owner->so_cred; in nfs41_free_lock_state() local
8416 task = _nfs41_free_stateid(server, &lsp->ls_stateid, cred, false); in nfs41_free_lock_state()