diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-04-04 23:11:36 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-04-04 23:11:36 -0800 |
| commit | 77252dbf25f65e50fb6bf6de2cc3ff315037a13e (patch) | |
| tree | cc17c369a79e55e8ea78ec740fbb247c96a3fe3a | |
| parent | 1cc96096036d4004a90eedbcadf73f6fa27708a0 (diff) | |
[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.
| -rw-r--r-- | fs/nfsd/nfsxdr.c | 2 | ||||
| -rw-r--r-- | include/linux/nfsd/const.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/nfsxdr.c b/fs/nfsd/nfsxdr.c index 3e59bdb864d2..a61281b0e851 100644 --- a/fs/nfsd/nfsxdr.c +++ b/fs/nfsd/nfsxdr.c @@ -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); diff --git a/include/linux/nfsd/const.h b/include/linux/nfsd/const.h index f59c6a6ef8c4..bd828fa0314f 100644 --- a/include/linux/nfsd/const.h +++ b/include/linux/nfsd/const.h @@ -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__ |
