Skip to content

Commit 0af165b

Browse files
committed
sunrpc: Remove the RPCSVC_MAXPAGES macro
It is no longer used. Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: NeilBrown <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 56ab43f commit 0af165b

File tree

1 file changed

+0
-7
lines changed
  • include/linux/sunrpc

1 file changed

+0
-7
lines changed

include/linux/sunrpc/svc.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,7 @@ extern u32 svc_max_payload(const struct svc_rqst *rqstp);
150150
* list. xdr_buf.tail points to the end of the first page.
151151
* This assumes that the non-page part of an rpc reply will fit
152152
* in a page - NFSd ensures this. lockd also has no trouble.
153-
*
154-
* Each request/reply pair can have at most one "payload", plus two pages,
155-
* one for the request, and one for the reply.
156-
* We using ->sendfile to return read data, we might need one extra page
157-
* if the request is not page-aligned. So add another '1'.
158153
*/
159-
#define RPCSVC_MAXPAGES ((RPCSVC_MAXPAYLOAD+PAGE_SIZE-1)/PAGE_SIZE \
160-
+ 2 + 1)
161154

162155
/**
163156
* svc_serv_maxpages - maximum count of pages needed for one RPC message

0 commit comments

Comments
 (0)