From 2bd4ae51791b43f33a4ff212370d1ea2fe1b3ca8 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Thu, 4 Dec 2008 14:19:53 -0500 Subject: [PATCH] --- yaml --- r: 127439 b: refs/heads/master c: 1df40b609ad5a622904eb652109c287fe9c93ec5 h: refs/heads/master i: 127437: cbff5844a0e1c20369a8f0c41c328637ead2cd57 127435: 8084ec1a0b2815bcc88c352049164008ac86ac88 127431: 881b1dd8613a6e75203519b39fff5e337b3e5075 127423: 2c11b2a3e6f8c599f281fe245eab65f7352869a1 v: v3 --- [refs] | 2 +- trunk/fs/lockd/host.c | 10 +++------- trunk/include/linux/lockd/lockd.h | 4 +--- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/[refs] b/[refs] index c10f67735d3a..8eb30c292bf0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7538ce1eb656a1477bedd5b1c202226e7abf5e7b +refs/heads/master: 1df40b609ad5a622904eb652109c287fe9c93ec5 diff --git a/trunk/fs/lockd/host.c b/trunk/fs/lockd/host.c index abdebf76b820..33bf67af7aba 100644 --- a/trunk/fs/lockd/host.c +++ b/trunk/fs/lockd/host.c @@ -206,6 +206,7 @@ static struct nlm_host *nlm_lookup_host(struct nlm_lookup_host_info *ni) goto out; } host->h_name = nsm->sm_name; + host->h_addrbuf = nsm->sm_addrbuf; memcpy(nlm_addr(host), ni->sap, ni->salen); host->h_addrlen = ni->salen; nlm_clear_port(nlm_addr(host)); @@ -232,11 +233,6 @@ static struct nlm_host *nlm_lookup_host(struct nlm_lookup_host_info *ni) nrhosts++; - nlm_display_address((struct sockaddr *)&host->h_addr, - host->h_addrbuf, sizeof(host->h_addrbuf)); - nlm_display_address((struct sockaddr *)&host->h_srcaddr, - host->h_srcaddrbuf, sizeof(host->h_srcaddrbuf)); - dprintk("lockd: nlm_lookup_host created host %s\n", host->h_name); @@ -378,8 +374,8 @@ nlm_bind_host(struct nlm_host *host) { struct rpc_clnt *clnt; - dprintk("lockd: nlm_bind_host %s (%s), my addr=%s\n", - host->h_name, host->h_addrbuf, host->h_srcaddrbuf); + dprintk("lockd: nlm_bind_host %s (%s)\n", + host->h_name, host->h_addrbuf); /* Lock host handle */ mutex_lock(&host->h_mutex); diff --git a/trunk/include/linux/lockd/lockd.h b/trunk/include/linux/lockd/lockd.h index 3dbdd353156c..dae22cb4c38d 100644 --- a/trunk/include/linux/lockd/lockd.h +++ b/trunk/include/linux/lockd/lockd.h @@ -65,9 +65,7 @@ struct nlm_host { struct list_head h_granted; /* Locks in GRANTED state */ struct list_head h_reclaim; /* Locks in RECLAIM state */ struct nsm_handle *h_nsmhandle; /* NSM status handle */ - - char h_addrbuf[48], /* address eyecatchers */ - h_srcaddrbuf[48]; + char *h_addrbuf; /* address eyecatcher */ }; struct nsm_handle {