• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/nfs/

Lines Matching refs:cred

765 static int _nfs4_do_access(struct inode *inode, struct rpc_cred *cred, int openflags)
775 status = nfs_access_get_cached(inode, cred, &cache);
781 cache.cred = cred;
873 static int _nfs4_open_delegated(struct inode *inode, int flags, struct rpc_cred *cred, struct nfs4_state **res)
885 if (!(sp = nfs4_get_state_owner(server, cred))) {
915 err = _nfs4_do_access(inode, cred, open_flags);
939 static struct nfs4_state *nfs4_open_delegated(struct inode *inode, int flags, struct rpc_cred *cred)
946 err = _nfs4_open_delegated(inode, flags, cred, &res);
958 static int _nfs4_do_open(struct inode *dir, struct dentry *dentry, int flags, struct iattr *sattr, struct rpc_cred *cred, struct nfs4_state **res)
969 if (!(sp = nfs4_get_state_owner(server, cred))) {
991 nfs_inode_set_delegation(state->inode, cred, &opendata->o_res);
1009 static struct nfs4_state *nfs4_do_open(struct inode *dir, struct dentry *dentry, int flags, struct iattr *sattr, struct rpc_cred *cred)
1016 status = _nfs4_do_open(dir, dentry, flags, sattr, cred, &res);
1263 struct rpc_cred *cred;
1277 cred = rpcauth_lookupcred(NFS_CLIENT(dir)->cl_auth, 0);
1278 if (IS_ERR(cred))
1279 return (struct dentry *)cred;
1280 state = nfs4_do_open(dir, dentry, nd->intent.open.flags, &attr, cred);
1281 put_rpccred(cred);
1297 struct rpc_cred *cred;
1300 cred = rpcauth_lookupcred(NFS_CLIENT(dir)->cl_auth, 0);
1301 if (IS_ERR(cred))
1302 return PTR_ERR(cred);
1303 state = nfs4_open_delegated(dentry->d_inode, openflags, cred);
1305 state = nfs4_do_open(dir, dentry, openflags, NULL, cred);
1306 put_rpccred(cred);
1510 struct rpc_cred *cred;
1518 cred = rpcauth_lookupcred(NFS_CLIENT(inode)->cl_auth, 0);
1519 if (IS_ERR(cred))
1520 return PTR_ERR(cred);
1523 ctx = nfs_find_open_context(inode, cred, FMODE_WRITE);
1532 put_rpccred(cred);
1635 .rpc_cred = entry->cred,
1756 struct rpc_cred *cred;
1759 cred = rpcauth_lookupcred(NFS_CLIENT(dir)->cl_auth, 0);
1760 if (IS_ERR(cred)) {
1761 status = PTR_ERR(cred);
1764 state = nfs4_do_open(dir, dentry, flags, sattr, cred);
1765 put_rpccred(cred);
2077 static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
2093 .rpc_cred = cred,
2110 static int nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
2117 _nfs4_proc_readdir(dentry, cred, cookie,
2313 .rpc_cred = data->cred,
2342 .rpc_cred = data->cred,
2384 .rpc_cred = data->cred,
2422 int nfs4_proc_async_renew(struct nfs_client *clp, struct rpc_cred *cred)
2427 .rpc_cred = cred,
2434 int nfs4_proc_renew(struct nfs_client *clp, struct rpc_cred *cred)
2439 .rpc_cred = cred,
2781 int nfs4_proc_setclientid(struct nfs_client *clp, u32 program, unsigned short port, struct rpc_cred *cred)
2792 .rpc_cred = cred,
2806 cred->cr_ops->cr_name,
2828 static int _nfs4_proc_setclientid_confirm(struct nfs_client *clp, struct rpc_cred *cred)
2835 .rpc_cred = cred,
2852 int nfs4_proc_setclientid_confirm(struct nfs_client *clp, struct rpc_cred *cred)
2857 err = _nfs4_proc_setclientid_confirm(clp, cred);
2875 struct rpc_cred *cred;
2888 .rpc_cred = data->cred,
2906 put_rpccred(data->cred);
2916 static int _nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid)
2933 data->cred = get_rpccred(cred);
2950 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid)
2956 err = _nfs4_proc_delegreturn(inode, cred, stateid);