Commit fcc072c7 authored by Chuck Lever's avatar Chuck Lever Committed by Trond Myklebust

lockd: Make nrhosts an unsigned long

Clean up.
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent d2df0484
...@@ -40,7 +40,7 @@ static struct hlist_head nlm_client_hosts[NLM_HOST_NRHASH]; ...@@ -40,7 +40,7 @@ static struct hlist_head nlm_client_hosts[NLM_HOST_NRHASH];
(chain), h_hash) (chain), h_hash)
static unsigned long next_gc; static unsigned long next_gc;
static int nrhosts; static unsigned long nrhosts;
static DEFINE_MUTEX(nlm_host_mutex); static DEFINE_MUTEX(nlm_host_mutex);
static void nlm_gc_hosts(void); static void nlm_gc_hosts(void);
...@@ -673,9 +673,9 @@ nlm_shutdown_hosts(void) ...@@ -673,9 +673,9 @@ nlm_shutdown_hosts(void)
mutex_unlock(&nlm_host_mutex); mutex_unlock(&nlm_host_mutex);
/* complain if any hosts are left */ /* complain if any hosts are left */
if (nrhosts) { if (nrhosts != 0) {
printk(KERN_WARNING "lockd: couldn't shutdown host module!\n"); printk(KERN_WARNING "lockd: couldn't shutdown host module!\n");
dprintk("lockd: %d hosts left:\n", nrhosts); dprintk("lockd: %lu hosts left:\n", nrhosts);
for_each_host(host, pos, chain, nlm_server_hosts) { for_each_host(host, pos, chain, nlm_server_hosts) {
dprintk(" %s (cnt %d use %d exp %ld)\n", dprintk(" %s (cnt %d use %d exp %ld)\n",
host->h_name, atomic_read(&host->h_count), host->h_name, atomic_read(&host->h_count),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment