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.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