summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_bio.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1995-07-07 11:01:31 +0000
committerdfr <dfr@FreeBSD.org>1995-07-07 11:01:31 +0000
commit2671254e234bfb8391b8636f9e093dea553a784a (patch)
tree9268c0d38541c7dcb7a6817dfb2fab81bc721073 /sys/nfsclient/nfs_bio.c
parentbc359d41a0c01bd670b14fa152b5d588363440b4 (diff)
downloadFreeBSD-src-2671254e234bfb8391b8636f9e093dea553a784a.zip
FreeBSD-src-2671254e234bfb8391b8636f9e093dea553a784a.tar.gz
Use a consistent blocksize for sizing bufs to avoid panicing the bio system.
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
-rw-r--r--sys/nfsclient/nfs_bio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c
index f9ae8b6..8507783 100644
--- a/sys/nfsclient/nfs_bio.c
+++ b/sys/nfsclient/nfs_bio.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.5 (Berkeley) 1/4/94
- * $Id: nfs_bio.c,v 1.14 1995/05/30 08:12:35 rgrimes Exp $
+ * $Id: nfs_bio.c,v 1.15 1995/06/27 11:06:34 dfr Exp $
*/
#include <sys/param.h>
@@ -107,7 +107,7 @@ nfs_bioread(vp, uio, ioflag, cred)
p = uio->uio_procp;
if ((nmp->nm_flag & (NFSMNT_NFSV3 | NFSMNT_GOTFSINFO)) == NFSMNT_NFSV3)
(void)nfs_fsinfo(nmp, vp, cred, p);
- biosize = nmp->nm_rsize;
+ biosize = vp->v_mount->mnt_stat.f_iosize;
/*
* For nfs, cache consistency can only be maintained approximately.
* Although RFC1094 does not specify the criteria, the following is
@@ -464,7 +464,7 @@ nfs_write(ap)
* will be the same size within a filesystem. nfs_writerpc will
* still use nm_wsize when sizing the rpc's.
*/
- biosize = nmp->nm_rsize;
+ biosize = vp->v_mount->mnt_stat.f_iosize;
do {
/*
@@ -619,7 +619,7 @@ nfs_getcacheblk(vp, bn, size, p)
{
register struct buf *bp;
struct nfsmount *nmp = VFSTONFS(vp->v_mount);
- int biosize = nmp->nm_rsize;
+ int biosize = vp->v_mount->mnt_stat.f_iosize;
if (nmp->nm_flag & NFSMNT_INT) {
bp = getblk(vp, bn, size, PCATCH, 0);
OpenPOWER on IntegriCloud