aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/auth.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-07-31 14:29:07 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-08-04 08:54:05 -0400
commit988664a0f6bbfc356e6ce55f7a87b8594050012f (patch)
treec6c6450c8559c13ca9d53c8959ffa4276f3eddf1 /include/linux/sunrpc/auth.h
parentNFS: Ensure the AUTH_UNIX credcache is allocated dynamically (diff)
downloadlinux-dev-988664a0f6bbfc356e6ce55f7a87b8594050012f.tar.xz
linux-dev-988664a0f6bbfc356e6ce55f7a87b8594050012f.zip
SUNRPC: Store the hashtable size in struct rpc_cred_cache
Cleanup in preparation for allowing the user to determine the maximum hash table size. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/auth.h')
-rw-r--r--include/linux/sunrpc/auth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h
index 784e78c73ec5..84d64b6926a9 100644
--- a/include/linux/sunrpc/auth.h
+++ b/include/linux/sunrpc/auth.h
@@ -65,6 +65,7 @@ struct rpc_cred {
#define RPC_CREDCACHE_NR (1 << RPC_CREDCACHE_HASHBITS)
struct rpc_cred_cache {
struct hlist_head hashtable[RPC_CREDCACHE_NR];
+ unsigned int hashbits;
spinlock_t lock;
};