diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-12-10 14:58:44 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:05:55 -0500 |
commit | ff052645c939b2fd8d467105adf98fa621cc244b (patch) | |
tree | 8f7a3030c8d052952dc08ade77da67395143cd8b /fs/nfs/client.c | |
parent | c1d35866566bc2b270a82445271fcce1e391c4b9 (diff) |
NFS: Change nfs_find_client() to take "struct sockaddr *"
Adjust arguments and callers of nfs_find_client() to pass a
"struct sockaddr *" instead of "struct sockaddr_in *" to support non-IPv4
addresses.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>
Trond: Also fix up protocol version number argument in nfs_find_client() to
use the correct u32 type.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r-- | fs/nfs/client.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 44fe7fd7bfbf..73bf4ecad030 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -242,7 +242,7 @@ static int nfs_sockaddr_match_ipaddr(const struct sockaddr *sa1, | |||
242 | * Find a client by IP address and protocol version | 242 | * Find a client by IP address and protocol version |
243 | * - returns NULL if no such client | 243 | * - returns NULL if no such client |
244 | */ | 244 | */ |
245 | struct nfs_client *_nfs_find_client(const struct sockaddr *addr, int nfsversion) | 245 | struct nfs_client *nfs_find_client(const struct sockaddr *addr, u32 nfsversion) |
246 | { | 246 | { |
247 | struct nfs_client *clp; | 247 | struct nfs_client *clp; |
248 | 248 | ||
@@ -272,11 +272,6 @@ struct nfs_client *_nfs_find_client(const struct sockaddr *addr, int nfsversion) | |||
272 | return NULL; | 272 | return NULL; |
273 | } | 273 | } |
274 | 274 | ||
275 | struct nfs_client *nfs_find_client(const struct sockaddr_in *addr, int nfsversion) | ||
276 | { | ||
277 | return _nfs_find_client((const struct sockaddr *)addr, nfsversion); | ||
278 | } | ||
279 | |||
280 | /* | 275 | /* |
281 | * Find an nfs_client on the list that matches the initialisation data | 276 | * Find an nfs_client on the list that matches the initialisation data |
282 | * that is supplied. | 277 | * that is supplied. |