aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJeff Layton <jlayton@poochiereds.net>2016-04-21 20:51:54 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2016-05-09 09:05:40 -0400
commit3c6e0bc8a14cfc8e1d4ab87f46f77b070c815bf1 (patch)
tree77b3bdbc71d4b2d71518112dd95bf5328ff8843e /include/linux
parent06ef26a0e35199cc0445d7d5708533a12af8ff5b (diff)
sunrpc: plumb gfp_t parm into crcreate operation
We need to be able to call the generic_cred creator from different contexts. Add a gfp_t parm to the crcreate operation and to rpcauth_lookup_credcache. For now, we just push the gfp_t parms up one level to the *_lookup_cred functions. Signed-off-by: Jeff Layton <jeff.layton@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sunrpc/auth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h
index 6a241a277249..3b616aa7e4d2 100644
--- a/include/linux/sunrpc/auth.h
+++ b/include/linux/sunrpc/auth.h
@@ -127,7 +127,7 @@ struct rpc_authops {
127 void (*destroy)(struct rpc_auth *); 127 void (*destroy)(struct rpc_auth *);
128 128
129 struct rpc_cred * (*lookup_cred)(struct rpc_auth *, struct auth_cred *, int); 129 struct rpc_cred * (*lookup_cred)(struct rpc_auth *, struct auth_cred *, int);
130 struct rpc_cred * (*crcreate)(struct rpc_auth*, struct auth_cred *, int); 130 struct rpc_cred * (*crcreate)(struct rpc_auth*, struct auth_cred *, int, gfp_t);
131 int (*list_pseudoflavors)(rpc_authflavor_t *, int); 131 int (*list_pseudoflavors)(rpc_authflavor_t *, int);
132 rpc_authflavor_t (*info2flavor)(struct rpcsec_gss_info *); 132 rpc_authflavor_t (*info2flavor)(struct rpcsec_gss_info *);
133 int (*flavor2info)(rpc_authflavor_t, 133 int (*flavor2info)(rpc_authflavor_t,
@@ -178,7 +178,7 @@ rpc_authflavor_t rpcauth_get_pseudoflavor(rpc_authflavor_t,
178int rpcauth_get_gssinfo(rpc_authflavor_t, 178int rpcauth_get_gssinfo(rpc_authflavor_t,
179 struct rpcsec_gss_info *); 179 struct rpcsec_gss_info *);
180int rpcauth_list_flavors(rpc_authflavor_t *, int); 180int rpcauth_list_flavors(rpc_authflavor_t *, int);
181struct rpc_cred * rpcauth_lookup_credcache(struct rpc_auth *, struct auth_cred *, int); 181struct rpc_cred * rpcauth_lookup_credcache(struct rpc_auth *, struct auth_cred *, int, gfp_t);
182void rpcauth_init_cred(struct rpc_cred *, const struct auth_cred *, struct rpc_auth *, const struct rpc_credops *); 182void rpcauth_init_cred(struct rpc_cred *, const struct auth_cred *, struct rpc_auth *, const struct rpc_credops *);
183struct rpc_cred * rpcauth_lookupcred(struct rpc_auth *, int); 183struct rpc_cred * rpcauth_lookupcred(struct rpc_auth *, int);
184struct rpc_cred * rpcauth_generic_bind_cred(struct rpc_task *, struct rpc_cred *, int); 184struct rpc_cred * rpcauth_generic_bind_cred(struct rpc_task *, struct rpc_cred *, int);