diff options
| -rw-r--r-- | fs/lockd/host.c | 10 | ||||
| -rw-r--r-- | include/linux/lockd/lockd.h | 4 |
2 files changed, 4 insertions, 10 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c index abdebf76b820..33bf67af7aba 100644 --- a/fs/lockd/host.c +++ b/fs/lockd/host.c | |||
| @@ -206,6 +206,7 @@ static struct nlm_host *nlm_lookup_host(struct nlm_lookup_host_info *ni) | |||
| 206 | goto out; | 206 | goto out; |
| 207 | } | 207 | } |
| 208 | host->h_name = nsm->sm_name; | 208 | host->h_name = nsm->sm_name; |
| 209 | host->h_addrbuf = nsm->sm_addrbuf; | ||
| 209 | memcpy(nlm_addr(host), ni->sap, ni->salen); | 210 | memcpy(nlm_addr(host), ni->sap, ni->salen); |
| 210 | host->h_addrlen = ni->salen; | 211 | host->h_addrlen = ni->salen; |
| 211 | nlm_clear_port(nlm_addr(host)); | 212 | nlm_clear_port(nlm_addr(host)); |
| @@ -232,11 +233,6 @@ static struct nlm_host *nlm_lookup_host(struct nlm_lookup_host_info *ni) | |||
| 232 | 233 | ||
| 233 | nrhosts++; | 234 | nrhosts++; |
| 234 | 235 | ||
| 235 | nlm_display_address((struct sockaddr *)&host->h_addr, | ||
| 236 | host->h_addrbuf, sizeof(host->h_addrbuf)); | ||
| 237 | nlm_display_address((struct sockaddr *)&host->h_srcaddr, | ||
| 238 | host->h_srcaddrbuf, sizeof(host->h_srcaddrbuf)); | ||
| 239 | |||
| 240 | dprintk("lockd: nlm_lookup_host created host %s\n", | 236 | dprintk("lockd: nlm_lookup_host created host %s\n", |
| 241 | host->h_name); | 237 | host->h_name); |
| 242 | 238 | ||
| @@ -378,8 +374,8 @@ nlm_bind_host(struct nlm_host *host) | |||
| 378 | { | 374 | { |
| 379 | struct rpc_clnt *clnt; | 375 | struct rpc_clnt *clnt; |
| 380 | 376 | ||
| 381 | dprintk("lockd: nlm_bind_host %s (%s), my addr=%s\n", | 377 | dprintk("lockd: nlm_bind_host %s (%s)\n", |
| 382 | host->h_name, host->h_addrbuf, host->h_srcaddrbuf); | 378 | host->h_name, host->h_addrbuf); |
| 383 | 379 | ||
| 384 | /* Lock host handle */ | 380 | /* Lock host handle */ |
| 385 | mutex_lock(&host->h_mutex); | 381 | mutex_lock(&host->h_mutex); |
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 3dbdd353156c..dae22cb4c38d 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
| @@ -65,9 +65,7 @@ struct nlm_host { | |||
| 65 | struct list_head h_granted; /* Locks in GRANTED state */ | 65 | struct list_head h_granted; /* Locks in GRANTED state */ |
| 66 | struct list_head h_reclaim; /* Locks in RECLAIM state */ | 66 | struct list_head h_reclaim; /* Locks in RECLAIM state */ |
| 67 | struct nsm_handle *h_nsmhandle; /* NSM status handle */ | 67 | struct nsm_handle *h_nsmhandle; /* NSM status handle */ |
| 68 | 68 | char *h_addrbuf; /* address eyecatcher */ | |
| 69 | char h_addrbuf[48], /* address eyecatchers */ | ||
| 70 | h_srcaddrbuf[48]; | ||
| 71 | }; | 69 | }; |
| 72 | 70 | ||
| 73 | struct nsm_handle { | 71 | struct nsm_handle { |
