aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 1e3558697219..b99096b8e827 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -675,25 +675,6 @@ static void nfs_umount_begin(struct super_block *sb)
675} 675}
676 676
677/* 677/*
678 * Set the port number in an address. Be agnostic about the address family.
679 */
680static void nfs_set_port(struct sockaddr *sap, unsigned short port)
681{
682 switch (sap->sa_family) {
683 case AF_INET: {
684 struct sockaddr_in *ap = (struct sockaddr_in *)sap;
685 ap->sin_port = htons(port);
686 break;
687 }
688 case AF_INET6: {
689 struct sockaddr_in6 *ap = (struct sockaddr_in6 *)sap;
690 ap->sin6_port = htons(port);
691 break;
692 }
693 }
694}
695
696/*
697 * Sanity-check a server address provided by the mount command. 678 * Sanity-check a server address provided by the mount command.
698 * 679 *
699 * Address family must be initialized, and address must not be 680 * Address family must be initialized, and address must not be