summaryrefslogtreecommitdiff
path: root/net/sunrpc/auth.c
diff options
context:
space:
mode:
authorFrank Sorenson <sorenson@redhat.com>2016-09-29 18:44:41 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2016-09-30 22:47:47 +0300
commit66cbd4ba8ac4711e8bad97b5bded31ec298c7433 (patch)
tree894e73c2c7799b2f00088ee0d551a9b82bf95a0c /net/sunrpc/auth.c
parenta960f8d6db431f5785ee28dbe903d61d821f368e (diff)
downloadlinux-66cbd4ba8ac4711e8bad97b5bded31ec298c7433.tar.xz
sunrpc: replace generic auth_cred hash with auth-specific function
Replace the generic code to hash the auth_cred with the call to the auth-specific hash function in the rpc_authops struct. Signed-off-by: Frank Sorenson <sorenson@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r--net/sunrpc/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index a7e42f9a405c..2bff63a73cf8 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -551,7 +551,7 @@ rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,
*entry, *new;
unsigned int nr;
- nr = hash_long(from_kuid(&init_user_ns, acred->uid), cache->hashbits);
+ nr = auth->au_ops->hash_cred(acred, cache->hashbits);
rcu_read_lock();
hlist_for_each_entry_rcu(entry, &cache->hashtable[nr], cr_hash) {