diff options
-rw-r--r-- | fs/lockd/host.c | 20 | ||||
-rw-r--r-- | include/linux/lockd/lockd.h | 6 |
2 files changed, 15 insertions, 11 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c index f1ef49fff118..f23750db1650 100644 --- a/fs/lockd/host.c +++ b/fs/lockd/host.c | |||
@@ -42,11 +42,12 @@ static struct nsm_handle * nsm_find(const struct sockaddr_in *sin, | |||
42 | /* | 42 | /* |
43 | * Common host lookup routine for server & client | 43 | * Common host lookup routine for server & client |
44 | */ | 44 | */ |
45 | static struct nlm_host * | 45 | static struct nlm_host *nlm_lookup_host(int server, |
46 | nlm_lookup_host(int server, const struct sockaddr_in *sin, | 46 | const struct sockaddr_in *sin, |
47 | int proto, int version, const char *hostname, | 47 | int proto, u32 version, |
48 | unsigned int hostname_len, | 48 | const char *hostname, |
49 | const struct sockaddr_in *ssin) | 49 | unsigned int hostname_len, |
50 | const struct sockaddr_in *ssin) | ||
50 | { | 51 | { |
51 | struct hlist_head *chain; | 52 | struct hlist_head *chain; |
52 | struct hlist_node *pos; | 53 | struct hlist_node *pos; |
@@ -55,7 +56,7 @@ nlm_lookup_host(int server, const struct sockaddr_in *sin, | |||
55 | int hash; | 56 | int hash; |
56 | 57 | ||
57 | dprintk("lockd: nlm_lookup_host("NIPQUAD_FMT"->"NIPQUAD_FMT | 58 | dprintk("lockd: nlm_lookup_host("NIPQUAD_FMT"->"NIPQUAD_FMT |
58 | ", p=%d, v=%d, my role=%s, name=%.*s)\n", | 59 | ", p=%d, v=%u, my role=%s, name=%.*s)\n", |
59 | NIPQUAD(ssin->sin_addr.s_addr), | 60 | NIPQUAD(ssin->sin_addr.s_addr), |
60 | NIPQUAD(sin->sin_addr.s_addr), proto, version, | 61 | NIPQUAD(sin->sin_addr.s_addr), proto, version, |
61 | server? "server" : "client", | 62 | server? "server" : "client", |
@@ -175,9 +176,10 @@ nlm_destroy_host(struct nlm_host *host) | |||
175 | /* | 176 | /* |
176 | * Find an NLM server handle in the cache. If there is none, create it. | 177 | * Find an NLM server handle in the cache. If there is none, create it. |
177 | */ | 178 | */ |
178 | struct nlm_host * | 179 | struct nlm_host *nlmclnt_lookup_host(const struct sockaddr_in *sin, |
179 | nlmclnt_lookup_host(const struct sockaddr_in *sin, int proto, int version, | 180 | int proto, u32 version, |
180 | const char *hostname, unsigned int hostname_len) | 181 | const char *hostname, |
182 | unsigned int hostname_len) | ||
181 | { | 183 | { |
182 | struct sockaddr_in ssin = {0}; | 184 | struct sockaddr_in ssin = {0}; |
183 | 185 | ||
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 4babb2a129ac..d15595013051 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -173,8 +173,10 @@ void nlmclnt_next_cookie(struct nlm_cookie *); | |||
173 | /* | 173 | /* |
174 | * Host cache | 174 | * Host cache |
175 | */ | 175 | */ |
176 | struct nlm_host *nlmclnt_lookup_host(const struct sockaddr_in *, int, int, | 176 | struct nlm_host *nlmclnt_lookup_host(const struct sockaddr_in *sin, |
177 | const char *, unsigned int); | 177 | int proto, u32 version, |
178 | const char *hostname, | ||
179 | unsigned int hostname_len); | ||
178 | struct nlm_host *nlmsvc_lookup_host(struct svc_rqst *, const char *, | 180 | struct nlm_host *nlmsvc_lookup_host(struct svc_rqst *, const char *, |
179 | unsigned int); | 181 | unsigned int); |
180 | struct rpc_clnt * nlm_bind_host(struct nlm_host *); | 182 | struct rpc_clnt * nlm_bind_host(struct nlm_host *); |