]> git.baikalelectronics.ru Git - kernel.git/commit
pull manipulations of rpc_cred inside alloc_nfs_open_context()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 23 Oct 2011 22:49:54 +0000 (18:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:52:34 +0000 (22:52 -0500)
commitbc571d57cfd14ede26585b1d67c3fd7ea0939aa2
treec26d99fbbed708a6db116e57daca68f2b3c672ac
parentc646b25aef903672d7e660126b897a15cf2ec4a3
pull manipulations of rpc_cred inside alloc_nfs_open_context()

No need to duplicate them in both callers; make it return
ERR_PTR(-ENOMEM) on allocation failure instead of NULL and
it'll be able to report rpc_lookup_cred() failures just
fine.  Callers are much happier that way...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfs/dir.c
fs/nfs/inode.c
include/linux/nfs_fs.h