diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-06-05 09:10:19 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-14 08:33:08 -0400 |
commit | 8867fe5899010a0c0ac36dadfdacf1072b1c990c (patch) | |
tree | 3af6bb8d50fb06a46a451ba23bde8dac98361c25 /include/linux | |
parent | 0dd2b474d0b69d58859399b1df7fdc699ea005d4 (diff) |
nfs: clean up ->create in nfs_rpc_ops
Don't pass nfs_open_context() to ->create(). Only the NFS4 implementation
needed that and only because it wanted to return an open file using open
intents. That task has been replaced by ->atomic_open so it is not necessary
anymore to pass the context to the create rpc operation.
Despite nfs4_proc_create apparently being okay with a NULL context it Oopses
somewhere down the call chain. So allocate a context here.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nfs_xdr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 8aadd90b808a..d3b7c18b18f4 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -1374,7 +1374,7 @@ struct nfs_rpc_ops { | |||
1374 | int (*readlink)(struct inode *, struct page *, unsigned int, | 1374 | int (*readlink)(struct inode *, struct page *, unsigned int, |
1375 | unsigned int); | 1375 | unsigned int); |
1376 | int (*create) (struct inode *, struct dentry *, | 1376 | int (*create) (struct inode *, struct dentry *, |
1377 | struct iattr *, int, struct nfs_open_context *); | 1377 | struct iattr *, int); |
1378 | int (*remove) (struct inode *, struct qstr *); | 1378 | int (*remove) (struct inode *, struct qstr *); |
1379 | void (*unlink_setup) (struct rpc_message *, struct inode *dir); | 1379 | void (*unlink_setup) (struct rpc_message *, struct inode *dir); |
1380 | void (*unlink_rpc_prepare) (struct rpc_task *, struct nfs_unlinkdata *); | 1380 | void (*unlink_rpc_prepare) (struct rpc_task *, struct nfs_unlinkdata *); |