]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sunrpc: Remove the RPCSVC_MAXPAGES macro
authorChuck Lever <chuck.lever@oracle.com>
Mon, 28 Apr 2025 19:36:58 +0000 (15:36 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 15 May 2025 20:16:27 +0000 (16:16 -0400)
It is no longer used.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/svc.h

index 6540af4b9bdbc6e9540e9cf24654b22c793f2a48..d57df042e24ae28be7d72911585de609b2972363 100644 (file)
@@ -150,14 +150,7 @@ extern u32 svc_max_payload(const struct svc_rqst *rqstp);
  * list.  xdr_buf.tail points to the end of the first page.
  * This assumes that the non-page part of an rpc reply will fit
  * in a page - NFSd ensures this.  lockd also has no trouble.
- *
- * Each request/reply pair can have at most one "payload", plus two pages,
- * 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 + 1)
 
 /**
  * svc_serv_maxpages - maximum count of pages needed for one RPC message