diff options
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 46139003ea0c..66a223b22a80 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -911,13 +911,13 @@ static int nfs_parse_mount_options(char *raw, | |||
911 | kfree(string); | 911 | kfree(string); |
912 | 912 | ||
913 | switch (token) { | 913 | switch (token) { |
914 | case Opt_udp: | 914 | case Opt_xprt_udp: |
915 | mnt->flags &= ~NFS_MOUNT_TCP; | 915 | mnt->flags &= ~NFS_MOUNT_TCP; |
916 | mnt->nfs_server.protocol = IPPROTO_UDP; | 916 | mnt->nfs_server.protocol = IPPROTO_UDP; |
917 | mnt->timeo = 7; | 917 | mnt->timeo = 7; |
918 | mnt->retrans = 5; | 918 | mnt->retrans = 5; |
919 | break; | 919 | break; |
920 | case Opt_tcp: | 920 | case Opt_xprt_tcp: |
921 | mnt->flags |= NFS_MOUNT_TCP; | 921 | mnt->flags |= NFS_MOUNT_TCP; |
922 | mnt->nfs_server.protocol = IPPROTO_TCP; | 922 | mnt->nfs_server.protocol = IPPROTO_TCP; |
923 | mnt->timeo = 600; | 923 | mnt->timeo = 600; |
@@ -936,10 +936,10 @@ static int nfs_parse_mount_options(char *raw, | |||
936 | kfree(string); | 936 | kfree(string); |
937 | 937 | ||
938 | switch (token) { | 938 | switch (token) { |
939 | case Opt_udp: | 939 | case Opt_xprt_udp: |
940 | mnt->mount_server.protocol = IPPROTO_UDP; | 940 | mnt->mount_server.protocol = IPPROTO_UDP; |
941 | break; | 941 | break; |
942 | case Opt_tcp: | 942 | case Opt_xprt_tcp: |
943 | mnt->mount_server.protocol = IPPROTO_TCP; | 943 | mnt->mount_server.protocol = IPPROTO_TCP; |
944 | break; | 944 | break; |
945 | default: | 945 | default: |