summaryrefslogtreecommitdiff
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2009-08-09 15:09:37 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-08-09 15:09:37 -0400
commitec6ee61250acfccbc5578dd4014735fb2cbe53b5 (patch)
tree90c93d506b82d7c67ed8208410a1024e872f9c8d /fs/nfs/internal.h
parent53a0b9c4c99ab0085a06421f71592722e5b3fd5f (diff)
downloadlinux-3.10-ec6ee61250acfccbc5578dd4014735fb2cbe53b5.tar.gz
linux-3.10-ec6ee61250acfccbc5578dd4014735fb2cbe53b5.tar.bz2
linux-3.10-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.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index cf1da3e2200..c2f171a3d70 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;
- }
-}