diff options
-rw-r--r-- | fs/nfs/file.c | 2 | ||||
-rw-r--r-- | fs/nfs/nfs4proc.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 48e892880d5b..a146ed338534 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
@@ -111,7 +111,7 @@ nfs_file_open(struct inode *inode, struct file *filp) | |||
111 | 111 | ||
112 | nfs_inc_stats(inode, NFSIOS_VFSOPEN); | 112 | nfs_inc_stats(inode, NFSIOS_VFSOPEN); |
113 | lock_kernel(); | 113 | lock_kernel(); |
114 | res = NFS_SERVER(inode)->rpc_ops->file_open(inode, filp); | 114 | res = NFS_PROTO(inode)->file_open(inode, filp); |
115 | unlock_kernel(); | 115 | unlock_kernel(); |
116 | return res; | 116 | return res; |
117 | } | 117 | } |
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; |