summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-09-29 20:05:33 +0000
committerphk <phk@FreeBSD.org>1999-09-29 20:05:33 +0000
commit073b941095e3deeaae66ec3452643c4db25deb08 (patch)
treedc46eb78c9f06021563b06118514348a52010687 /sys/kern/vfs_cluster.c
parentaf7bbb9a33441701ff5146882af25965b2f6a467 (diff)
downloadFreeBSD-src-073b941095e3deeaae66ec3452643c4db25deb08.zip
FreeBSD-src-073b941095e3deeaae66ec3452643c4db25deb08.tar.gz
Remove v_maxio from struct vnode.
Replace it with mnt_iosize_max in struct mount. Nits from: bde
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 5037311..d8c77db 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -106,7 +106,7 @@ cluster_read(vp, filesize, lblkno, size, cred, totread, seqcount, bpp)
* Try to limit the amount of read-ahead by a few
* ad-hoc parameters. This needs work!!!
*/
- racluster = vp->v_maxio/size;
+ racluster = vp->v_mount->mnt_iosize_max / size;
maxra = 2 * racluster + (totread / size);
if (maxra > MAXRA)
maxra = MAXRA;
@@ -363,7 +363,7 @@ cluster_rbuild(vp, filesize, lbn, blkno, size, run, fbp)
for (bn = blkno, i = 0; i < run; ++i, bn += inc) {
if (i != 0) {
if ((bp->b_npages * PAGE_SIZE) +
- round_page(size) > vp->v_maxio)
+ round_page(size) > vp->v_mount->mnt_iosize_max)
break;
if ((tbp = incore(vp, lbn + i)) != NULL) {
@@ -556,7 +556,7 @@ cluster_write(bp, filesize)
if (vp->v_clen == 0 || lbn != vp->v_lastw + 1 ||
(bp->b_blkno != vp->v_lasta + btodb(lblocksize))) {
- maxclen = vp->v_maxio / lblocksize - 1;
+ maxclen = vp->v_mount->mnt_iosize_max / lblocksize - 1;
if (vp->v_clen != 0) {
/*
* Next block is not sequential.
@@ -761,7 +761,7 @@ cluster_wbuild(vp, size, start_lbn, len)
((bp->b_blkno + (dbsize * i)) !=
tbp->b_blkno) ||
((tbp->b_npages + bp->b_npages) >
- (vp->v_maxio / PAGE_SIZE))) {
+ (vp->v_mount->mnt_iosize_max / PAGE_SIZE))) {
BUF_UNLOCK(tbp);
splx(s);
break;
OpenPOWER on IntegriCloud