Commit 77252dbf authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] PATCH 4 of 4 : knfsd : Increase the max block size for NFS replies.

This increases the max read/write size for nfsd from 8K to 32K.

This requires making NFSv2 return the right number in statfs
requests.  NFSv3 already does that.
parent 1cc96096
...@@ -385,7 +385,7 @@ nfssvc_encode_statfsres(struct svc_rqst *rqstp, u32 *p, ...@@ -385,7 +385,7 @@ nfssvc_encode_statfsres(struct svc_rqst *rqstp, u32 *p,
{ {
struct statfs *stat = &resp->stats; struct statfs *stat = &resp->stats;
*p++ = htonl(8 * 1024); /* max transfer size */ *p++ = htonl(NFSSVC_MAXBLKSIZE); /* max transfer size */
*p++ = htonl(stat->f_bsize); *p++ = htonl(stat->f_bsize);
*p++ = htonl(stat->f_blocks); *p++ = htonl(stat->f_blocks);
*p++ = htonl(stat->f_bfree); *p++ = htonl(stat->f_bfree);
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
#define NFSSVC_MAXVERS 3 #define NFSSVC_MAXVERS 3
/* /*
* Maximum blocksize supported by daemon currently at 8K * Maximum blocksize supported by daemon currently at 32K
*/ */
#define NFSSVC_MAXBLKSIZE 8192 #define NFSSVC_MAXBLKSIZE (32*1024)
#ifdef __KERNEL__ #ifdef __KERNEL__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment