aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd/host.c')
-rw-r--r--fs/lockd/host.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 87fbde1d1a1f..77ec21a808db 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -40,7 +40,7 @@ static struct hlist_head nlm_client_hosts[NLM_HOST_NRHASH];
40 (chain), h_hash) 40 (chain), h_hash)
41 41
42static unsigned long next_gc; 42static unsigned long next_gc;
43static int nrhosts; 43static unsigned long nrhosts;
44static DEFINE_MUTEX(nlm_host_mutex); 44static DEFINE_MUTEX(nlm_host_mutex);
45 45
46static void nlm_gc_hosts(void); 46static void nlm_gc_hosts(void);
@@ -673,9 +673,9 @@ nlm_shutdown_hosts(void)
673 mutex_unlock(&nlm_host_mutex); 673 mutex_unlock(&nlm_host_mutex);
674 674
675 /* complain if any hosts are left */ 675 /* complain if any hosts are left */
676 if (nrhosts) { 676 if (nrhosts != 0) {
677 printk(KERN_WARNING "lockd: couldn't shutdown host module!\n"); 677 printk(KERN_WARNING "lockd: couldn't shutdown host module!\n");
678 dprintk("lockd: %d hosts left:\n", nrhosts); 678 dprintk("lockd: %lu hosts left:\n", nrhosts);
679 for_each_host(host, pos, chain, nlm_server_hosts) { 679 for_each_host(host, pos, chain, nlm_server_hosts) {
680 dprintk(" %s (cnt %d use %d exp %ld)\n", 680 dprintk(" %s (cnt %d use %d exp %ld)\n",
681 host->h_name, atomic_read(&host->h_count), 681 host->h_name, atomic_read(&host->h_count),