diff options
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r-- | fs/nfs/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 2edcbca1a161..6f6755529788 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/sunrpc/clnt.h> | 23 | #include <linux/sunrpc/clnt.h> |
24 | #include <linux/sunrpc/stats.h> | 24 | #include <linux/sunrpc/stats.h> |
25 | #include <linux/sunrpc/metrics.h> | 25 | #include <linux/sunrpc/metrics.h> |
26 | #include <linux/sunrpc/xprtsock.h> | ||
26 | #include <linux/nfs_fs.h> | 27 | #include <linux/nfs_fs.h> |
27 | #include <linux/nfs_mount.h> | 28 | #include <linux/nfs_mount.h> |
28 | #include <linux/nfs4_mount.h> | 29 | #include <linux/nfs4_mount.h> |
@@ -340,7 +341,7 @@ static void nfs_init_timeout_values(struct rpc_timeout *to, int proto, | |||
340 | to->to_retries = 2; | 341 | to->to_retries = 2; |
341 | 342 | ||
342 | switch (proto) { | 343 | switch (proto) { |
343 | case IPPROTO_TCP: | 344 | case XPRT_TRANSPORT_TCP: |
344 | if (!to->to_initval) | 345 | if (!to->to_initval) |
345 | to->to_initval = 60 * HZ; | 346 | to->to_initval = 60 * HZ; |
346 | if (to->to_initval > NFS_MAX_TCP_TIMEOUT) | 347 | if (to->to_initval > NFS_MAX_TCP_TIMEOUT) |
@@ -349,7 +350,7 @@ static void nfs_init_timeout_values(struct rpc_timeout *to, int proto, | |||
349 | to->to_maxval = to->to_initval + (to->to_increment * to->to_retries); | 350 | to->to_maxval = to->to_initval + (to->to_increment * to->to_retries); |
350 | to->to_exponential = 0; | 351 | to->to_exponential = 0; |
351 | break; | 352 | break; |
352 | case IPPROTO_UDP: | 353 | case XPRT_TRANSPORT_UDP: |
353 | default: | 354 | default: |
354 | if (!to->to_initval) | 355 | if (!to->to_initval) |
355 | to->to_initval = 11 * HZ / 10; | 356 | to->to_initval = 11 * HZ / 10; |