diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-08-09 21:09:37 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-09 21:09:37 +0200 |
commit | ec6ee61250acfccbc5578dd4014735fb2cbe53b5 (patch) | |
tree | 90c93d506b82d7c67ed8208410a1024e872f9c8d /fs/nfs/internal.h | |
parent | NFS: Replace nfs_parse_ip_address() with rpc_pton() (diff) | |
download | linux-ec6ee61250acfccbc5578dd4014735fb2cbe53b5.tar.xz linux-ec6ee61250acfccbc5578dd4014735fb2cbe53b5.zip |
NFS: Replace nfs_set_port() with rpc_set_port()
Clean up.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index cf1da3e22004..c2f171a3d70e 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -368,22 +368,3 @@ unsigned int nfs_page_array_len(unsigned int base, size_t len) return ((unsigned long)len + (unsigned long)base + PAGE_SIZE - 1) >> PAGE_SHIFT; } - -/* - * Set the port number in an address. Be agnostic about the address - * family. - */ -static inline void nfs_set_port(struct sockaddr *sap, unsigned short port) -{ - struct sockaddr_in *ap = (struct sockaddr_in *)sap; - struct sockaddr_in6 *ap6 = (struct sockaddr_in6 *)sap; - - switch (sap->sa_family) { - case AF_INET: - ap->sin_port = htons(port); - break; - case AF_INET6: - ap6->sin6_port = htons(port); - break; - } -} |