aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/svcsock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index 036ab520df21..406b3e687952 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -19,6 +19,7 @@
19 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> 19 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
20 */ 20 */
21 21
22#include <linux/kernel.h>
22#include <linux/sched.h> 23#include <linux/sched.h>
23#include <linux/errno.h> 24#include <linux/errno.h>
24#include <linux/fcntl.h> 25#include <linux/fcntl.h>
@@ -877,7 +878,7 @@ svc_udp_recvfrom(struct svc_rqst *rqstp)
877 } else { 878 } else {
878 rqstp->rq_arg.page_len = len - rqstp->rq_arg.head[0].iov_len; 879 rqstp->rq_arg.page_len = len - rqstp->rq_arg.head[0].iov_len;
879 rqstp->rq_respages = rqstp->rq_pages + 1 + 880 rqstp->rq_respages = rqstp->rq_pages + 1 +
880 (rqstp->rq_arg.page_len + PAGE_SIZE - 1)/ PAGE_SIZE; 881 DIV_ROUND_UP(rqstp->rq_arg.page_len, PAGE_SIZE);
881 } 882 }
882 883
883 if (serv->sv_stats) 884 if (serv->sv_stats)