aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcsock.c
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2007-08-28 18:50:33 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:37 -0400
commit172589ccdde41b59861c92c4a971b95514ef24e3 (patch)
treeae775e6db4cb85aad1c74b6d93ba359f9dfe88ea /net/sunrpc/svcsock.c
parentc45248c70125cc374fdf264659643276c72801bf (diff)
[NET]: DIV_ROUND_UP cleanup (part two)
Hopefully captured all single statement cases under net/. I'm not too sure if there is some policy about #includes that are "guaranteed" (ie., in the current tree) to be available through some other #included header, so I just added linux/kernel.h to each changed file that didn't #include it previously. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc/svcsock.c')
-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)