aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-08-22 20:06:11 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-09-22 23:24:35 -0400
commit1f163415dc05983830bcc47b33c155b2528b1574 (patch)
treee4180da9947f8b802b6927726cda9d0949f8e00f /fs/nfs/nfs4proc.c
parent27951bd26031f6c27d38df9e94623bbe208a2464 (diff)
NFS: Make better use of inode* dereferencing macros
Make better use of inode* dereferencing macros to hide dereferencing chains (including NFS_PROTO and NFS_CLIENT). Signed-Off-By: David Howells <dhowells@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 061be713b206..b731b1945270 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1268,7 +1268,7 @@ nfs4_atomic_open(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
1268 BUG_ON(nd->intent.open.flags & O_CREAT); 1268 BUG_ON(nd->intent.open.flags & O_CREAT);
1269 } 1269 }
1270 1270
1271 cred = rpcauth_lookupcred(NFS_SERVER(dir)->client->cl_auth, 0); 1271 cred = rpcauth_lookupcred(NFS_CLIENT(dir)->cl_auth, 0);
1272 if (IS_ERR(cred)) 1272 if (IS_ERR(cred))
1273 return (struct dentry *)cred; 1273 return (struct dentry *)cred;
1274 state = nfs4_do_open(dir, dentry, nd->intent.open.flags, &attr, cred); 1274 state = nfs4_do_open(dir, dentry, nd->intent.open.flags, &attr, cred);
@@ -1291,7 +1291,7 @@ nfs4_open_revalidate(struct inode *dir, struct dentry *dentry, int openflags, st
1291 struct rpc_cred *cred; 1291 struct rpc_cred *cred;
1292 struct nfs4_state *state; 1292 struct nfs4_state *state;
1293 1293
1294 cred = rpcauth_lookupcred(NFS_SERVER(dir)->client->cl_auth, 0); 1294 cred = rpcauth_lookupcred(NFS_CLIENT(dir)->cl_auth, 0);
1295 if (IS_ERR(cred)) 1295 if (IS_ERR(cred))
1296 return PTR_ERR(cred); 1296 return PTR_ERR(cred);
1297 state = nfs4_open_delegated(dentry->d_inode, openflags, cred); 1297 state = nfs4_open_delegated(dentry->d_inode, openflags, cred);
@@ -1565,7 +1565,7 @@ nfs4_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
1565 1565
1566 nfs_fattr_init(fattr); 1566 nfs_fattr_init(fattr);
1567 1567
1568 cred = rpcauth_lookupcred(NFS_SERVER(inode)->client->cl_auth, 0); 1568 cred = rpcauth_lookupcred(NFS_CLIENT(inode)->cl_auth, 0);
1569 if (IS_ERR(cred)) 1569 if (IS_ERR(cred))
1570 return PTR_ERR(cred); 1570 return PTR_ERR(cred);
1571 1571
@@ -1927,7 +1927,7 @@ nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
1927 struct rpc_cred *cred; 1927 struct rpc_cred *cred;
1928 int status = 0; 1928 int status = 0;
1929 1929
1930 cred = rpcauth_lookupcred(NFS_SERVER(dir)->client->cl_auth, 0); 1930 cred = rpcauth_lookupcred(NFS_CLIENT(dir)->cl_auth, 0);
1931 if (IS_ERR(cred)) { 1931 if (IS_ERR(cred)) {
1932 status = PTR_ERR(cred); 1932 status = PTR_ERR(cred);
1933 goto out; 1933 goto out;
@@ -2816,7 +2816,7 @@ static int __nfs4_proc_set_acl(struct inode *inode, const void *buf, size_t bufl
2816 return -EOPNOTSUPP; 2816 return -EOPNOTSUPP;
2817 nfs_inode_return_delegation(inode); 2817 nfs_inode_return_delegation(inode);
2818 buf_to_pages(buf, buflen, arg.acl_pages, &arg.acl_pgbase); 2818 buf_to_pages(buf, buflen, arg.acl_pages, &arg.acl_pgbase);
2819 ret = rpc_call_sync(NFS_SERVER(inode)->client, &msg, 0); 2819 ret = rpc_call_sync(NFS_CLIENT(inode), &msg, 0);
2820 if (ret == 0) 2820 if (ret == 0)
2821 nfs4_write_cached_acl(inode, buf, buflen); 2821 nfs4_write_cached_acl(inode, buf, buflen);
2822 return ret; 2822 return ret;