]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: clean up ->create in nfs_rpc_ops
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 5 Jun 2012 13:10:19 +0000 (15:10 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 12:33:08 +0000 (16:33 +0400)
commitbf10dc72ee5ed03ebb18d37518a1c5b742f1541f
tree3af6bb8d50fb06a46a451ba23bde8dac98361c25
parent6e4d4925e21854a1f347f582af08dcd79765ca9b
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>
fs/nfs/dir.c
fs/nfs/nfs3proc.c
fs/nfs/nfs4proc.c
fs/nfs/proc.c
include/linux/nfs_xdr.h