aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfsd/const.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-10-04 05:15:48 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-04 10:55:16 -0400
commit596bbe53eb3abfe7326b2f5e8afd614265c319c8 (patch)
tree31e1f008f8acb46d1a3a937538446a1447ed9c8f /include/linux/nfsd/const.h
parent7adae489fe794e3e203ff168595f635d0b845e59 (diff)
[PATCH] knfsd: Allow max size of NFSd payload to be configured
The max possible is the maximum RPC payload. The default depends on amount of total memory. The value can be set within reason as long as no nfsd threads are currently running. The value can also be ready, allowing the default to be determined after nfsd has started. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/nfsd/const.h')
-rw-r--r--include/linux/nfsd/const.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/nfsd/const.h b/include/linux/nfsd/const.h
index adbddf007898..f478066f9cd5 100644
--- a/include/linux/nfsd/const.h
+++ b/include/linux/nfsd/const.h
@@ -21,9 +21,9 @@
21#define NFSSVC_MAXVERS 3 21#define NFSSVC_MAXVERS 3
22 22
23/* 23/*
24 * Maximum blocksize supported by daemon currently at 32K 24 * Maximum blocksizes supported by daemon under various circumstances.
25 */ 25 */
26#define NFSSVC_MAXBLKSIZE (32*1024) 26#define NFSSVC_MAXBLKSIZE RPCSVC_MAXPAYLOAD
27/* NFSv2 is limited by the protocol specification, see RFC 1094 */ 27/* NFSv2 is limited by the protocol specification, see RFC 1094 */
28#define NFSSVC_MAXBLKSIZE_V2 (8*1024) 28#define NFSSVC_MAXBLKSIZE_V2 (8*1024)
29 29