|
@@ -144,8 +144,11 @@ extern u32 svc_max_payload(const struct svc_rqst *rqstp);
|
|
*
|
|
*
|
|
* Each request/reply pair can have at most one "payload", plus two pages,
|
|
* Each request/reply pair can have at most one "payload", plus two pages,
|
|
* one for the request, and one for the reply.
|
|
* one for the request, and one for the reply.
|
|
|
|
+ * We using ->sendfile to return read data, we might need one extra page
|
|
|
|
+ * if the request is not page-aligned. So add another '1'.
|
|
*/
|
|
*/
|
|
-#define RPCSVC_MAXPAGES ((RPCSVC_MAXPAYLOAD+PAGE_SIZE-1)/PAGE_SIZE + 2)
|
|
|
|
|
|
+#define RPCSVC_MAXPAGES ((RPCSVC_MAXPAYLOAD+PAGE_SIZE-1)/PAGE_SIZE \
|
|
|
|
+ + 2 + 1)
|
|
|
|
|
|
static inline u32 svc_getnl(struct kvec *iov)
|
|
static inline u32 svc_getnl(struct kvec *iov)
|
|
{
|
|
{
|