]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PATCH 4 of 4 : knfsd : Increase the max block size for NFS replies.
authorNeil Brown <neilb@cse.unsw.edu.au>
Fri, 5 Apr 2002 07:11:36 +0000 (23:11 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Fri, 5 Apr 2002 07:11:36 +0000 (23:11 -0800)
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.

fs/nfsd/nfsxdr.c
include/linux/nfsd/const.h

index 3e59bdb864d222190634fef14a07111c09d29e04..a61281b0e8515094c61991da38d5df9cfddceac4 100644 (file)
@@ -385,7 +385,7 @@ nfssvc_encode_statfsres(struct svc_rqst *rqstp, u32 *p,
 {
        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_blocks);
        *p++ = htonl(stat->f_bfree);
index f59c6a6ef8c470c0e1718bd42f6f6024086a4f46..bd828fa0314f0230c7378aaa20581382e246da79 100644 (file)
@@ -19,9 +19,9 @@
 #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__