twx-linux/include/linux/sunrpc
NeilBrown 4452435948 [PATCH] knfsd: Replace two page lists in struct svc_rqst with one
We are planning to increase RPCSVC_MAXPAGES from about 8 to about 256.  This
means we need to be a bit careful about arrays of size RPCSVC_MAXPAGES.

struct svc_rqst contains two such arrays.  However the there are never more
that RPCSVC_MAXPAGES pages in the two arrays together, so only one array is
needed.

The two arrays are for the pages holding the request, and the pages holding
the reply.  Instead of two arrays, we can simply keep an index into where the
first reply page is.

This patch also removes a number of small inline functions that probably
server to obscure what is going on rather than clarify it, and opencode the
needed functionality.

Also remove the 'rq_restailpage' variable as it is *always* 0.  i.e.  if the
response 'xdr' structure has a non-empty tail it is always in the same pages
as the head.

 check counters are initilised and incr properly
 check for consistant usage of ++ etc
 maybe extra some inlines for common approach
 general review

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: Magnus Maatta <novell@kiruna.se>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-04 07:55:15 -07:00
..
auth_gss.h fix file specification in comments 2006-10-03 23:01:26 +02:00
auth.h [SUNRPC]: trivial endianness annotations 2006-09-28 18:01:21 -07:00
cache.h
clnt.h SUNRPC: Eliminate xprt_create_proto and rpc_create_client 2006-09-22 23:24:51 -04:00
debug.h
gss_api.h fix file specification in comments 2006-10-03 23:01:26 +02:00
gss_asn1.h
gss_err.h
gss_krb5.h [SUNRPC] GSS: Use block ciphers where applicable 2006-09-21 11:46:15 +10:00
gss_spkm3.h [SUNRPC] GSS: Use block ciphers where applicable 2006-09-21 11:46:15 +10:00
Kbuild [HEADERS] One line per header in Kbuild files to reduce conflicts 2006-09-19 12:43:58 +01:00
metrics.h
msg_prot.h fix file specification in comments 2006-10-03 23:01:26 +02:00
rpc_pipe_fs.h SUNRPC: Make rpc_mkpipe() take the parent dentry as an argument 2006-09-22 23:24:54 -04:00
sched.h SUNRPC: Support for RPC child tasks no longer needed 2006-09-22 23:24:40 -04:00
stats.h
svc.h [PATCH] knfsd: Replace two page lists in struct svc_rqst with one 2006-10-04 07:55:15 -07:00
svcauth_gss.h fix file specification in comments 2006-10-03 23:01:26 +02:00
svcauth.h [SUNRPC]: trivial endianness annotations 2006-09-28 18:01:21 -07:00
svcsock.h [PATCH] knfsd: split svc_serv into pools 2006-10-02 07:57:19 -07:00
timer.h
types.h
xdr.h [SUNRPC]: trivial endianness annotations 2006-09-28 18:01:21 -07:00
xprt.h [SUNRPC]: trivial endianness annotations 2006-09-28 18:01:21 -07:00