diff options
author | dillon <dillon@FreeBSD.org> | 2002-12-28 20:37:50 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2002-12-28 20:37:50 +0000 |
commit | fd92c8a19592993604b8a8f8e42a06219e8dd545 (patch) | |
tree | c181652769de5165ee8755e0e4b743d4a94a1ddf /sys/nfsclient | |
parent | 4ecb4d83e44022a7cb2e3df7eb4430794d31afdd (diff) | |
download | FreeBSD-src-fd92c8a19592993604b8a8f8e42a06219e8dd545.zip FreeBSD-src-fd92c8a19592993604b8a8f8e42a06219e8dd545.tar.gz |
Abstract-out the constants for the sequential heuristic.
No operational changes.
MFC after: 1 day
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index f88b04c..1603946 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -376,7 +376,7 @@ nfs_bioread(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *cred) (uio->uio_offset + uio->uio_resid) > nmp->nm_maxfilesize) return (EFBIG); biosize = vp->v_mount->mnt_stat.f_iosize; - seqcount = (int)((off_t)(ioflag >> 16) * biosize / BKVASIZE); + seqcount = (int)((off_t)(ioflag >> IO_SEQSHIFT) * biosize / BKVASIZE); /* * For nfs, cache consistency can only be maintained approximately. * Although RFC1094 does not specify the criteria, the following is |