aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/host.c
diff options
context:
space:
mode:
authorOlaf Kirch <okir@suse.de>2006-10-04 05:15:54 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-04 10:55:16 -0400
commitf0737a39a64a9df32bb045c54e1cdf6cecdcbdd7 (patch)
treea43dd888bd2af9511ef5a0c3aeb1f4cb50ca44a2 /fs/lockd/host.c
parent8dead0dbd478f35fd943f3719591e5af1ac0950d (diff)
[PATCH] knfsd: misc minor fixes, indentation changes
cleans up some code in lockd/host.c, fixes an error printk and makes it a fatal BUG if nlmsvc_free_host_resources fails. Signed-off-by: Olaf Kirch <okir@suse.de> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/lockd/host.c')
-rw-r--r--fs/lockd/host.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 0bf4afb71d25..4990223a3e18 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -110,16 +110,13 @@ nlm_lookup_host(int server, const struct sockaddr_in *sin,
110 if (host->h_server != server) 110 if (host->h_server != server)
111 continue; 111 continue;
112 112
113 { 113 if (hp != nlm_hosts + hash) {
114 if (hp != nlm_hosts + hash) { 114 *hp = host->h_next;
115 *hp = host->h_next; 115 host->h_next = nlm_hosts[hash];
116 host->h_next = nlm_hosts[hash]; 116 nlm_hosts[hash] = host;
117 nlm_hosts[hash] = host;
118 }
119 nlm_get_host(host);
120 mutex_unlock(&nlm_host_mutex);
121 return host;
122 } 117 }
118 nlm_get_host(host);
119 goto out;
123 } 120 }
124 121
125 /* Sadly, the host isn't in our hash table yet. See if 122 /* Sadly, the host isn't in our hash table yet. See if