Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127439
b: refs/heads/master
c: 1df40b6
h: refs/heads/master
i:
  127437: cbff584
  127435: 8084ec1
  127431: 881b1dd
  127423: 2c11b2a
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent bd41661 commit 2bd4ae5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7538ce1eb656a1477bedd5b1c202226e7abf5e7b
refs/heads/master: 1df40b609ad5a622904eb652109c287fe9c93ec5
10 changes: 3 additions & 7 deletions trunk/fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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);

Expand Down Expand Up @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions trunk/include/linux/lockd/lockd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2bd4ae5

Please sign in to comment.