diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-08-09 15:09:37 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-09 15:09:37 -0400 |
commit | ec6ee61250acfccbc5578dd4014735fb2cbe53b5 (patch) | |
tree | 90c93d506b82d7c67ed8208410a1024e872f9c8d /fs/nfs/internal.h | |
parent | 53a0b9c4c99ab0085a06421f71592722e5b3fd5f (diff) | |
download | op-kernel-dev-ec6ee61250acfccbc5578dd4014735fb2cbe53b5.zip op-kernel-dev-ec6ee61250acfccbc5578dd4014735fb2cbe53b5.tar.gz |
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 cf1da3e..c2f171a 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; - } -} |