From 77f763b0e45aa847de453ff812761ad97045b8d8 Mon Sep 17 00:00:00 2001 From: dfr Date: Tue, 3 Jun 1997 09:42:43 +0000 Subject: Fix some performance problems with the NFS mmap fixes. --- sys/nfsclient/nfs_bio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/nfsclient/nfs_bio.c') diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index 2a02371..a6320b4 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95 - * $Id: nfs_bio.c,v 1.37 1997/05/13 19:41:32 dfr Exp $ + * $Id: nfs_bio.c,v 1.38 1997/05/19 14:36:47 dfr Exp $ */ @@ -109,8 +109,8 @@ nfs_getpages(ap) auio.uio_iov = &aiov; auio.uio_iovcnt = 1; aiov.iov_base = 0; - aiov.iov_len = MAXBSIZE; - auio.uio_resid = MAXBSIZE; + aiov.iov_len = PAGE_SIZE; + auio.uio_resid = PAGE_SIZE; auio.uio_offset = IDX_TO_OFF(m->pindex); auio.uio_segflg = UIO_NOCOPY; auio.uio_rw = UIO_READ; @@ -120,7 +120,7 @@ nfs_getpages(ap) m->flags |= PG_BUSY; m->busy--; - if (error && (auio.uio_resid == MAXBSIZE)) + if (error && (auio.uio_resid == PAGE_SIZE)) return VM_PAGER_ERROR; return 0; } -- cgit v1.1