]> git.kernelconcepts.de Git - mv-sheeva.git/commitdiff
lockd: Make nrhosts an unsigned long
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Dec 2010 15:06:32 +0000 (15:06 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Dec 2010 17:37:27 +0000 (12:37 -0500)
Clean up.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/host.c

index 87fbde1d1a1fde7b34f5f1ea57e7e1d527f21d5d..77ec21a808db4a440f99c05d14bc6b4800127926 100644 (file)
@@ -40,7 +40,7 @@ static struct hlist_head      nlm_client_hosts[NLM_HOST_NRHASH];
                                                (chain), h_hash)
 
 static unsigned long           next_gc;
-static int                     nrhosts;
+static unsigned long           nrhosts;
 static DEFINE_MUTEX(nlm_host_mutex);
 
 static void                    nlm_gc_hosts(void);
@@ -673,9 +673,9 @@ nlm_shutdown_hosts(void)
        mutex_unlock(&nlm_host_mutex);
 
        /* complain if any hosts are left */
-       if (nrhosts) {
+       if (nrhosts != 0) {
                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) {
                        dprintk("       %s (cnt %d use %d exp %ld)\n",
                                host->h_name, atomic_read(&host->h_count),