]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sunrpc: Add a helper to derive maxpages from sv_max_mesg
authorChuck Lever <chuck.lever@oracle.com>
Mon, 28 Apr 2025 19:36:50 +0000 (15:36 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 15 May 2025 20:16:21 +0000 (16:16 -0400)
commiteff042ddf4b9587fa7394d502b93e06ec6015177
tree081ef40f5c2a56eea3bcbd764c56948b46220a2a
parent59243315890578a040a2d50ae9e001a2ef2fcb62
sunrpc: Add a helper to derive maxpages from sv_max_mesg

This page count is to be used to allocate various arrays of pages
and bio_vecs, replacing the fixed RPCSVC_MAXPAGES value.

The documenting comment is somewhat stale -- of course NFSv4
COMPOUND procedures may have multiple payloads.

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