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 | |
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')
-rw-r--r-- | sys/fs/msdosfs/msdosfs_vnops.c | 2 | ||||
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c index b7ef69f..61b9545 100644 --- a/sys/fs/msdosfs/msdosfs_vnops.c +++ b/sys/fs/msdosfs/msdosfs_vnops.c @@ -531,7 +531,7 @@ msdosfs_read(ap) if (orig_resid <= 0) return (0); - seqcount = ap->a_ioflag >> 16; + seqcount = ap->a_ioflag >> IO_SEQSHIFT; isadir = dep->de_Attributes & ATTR_DIRECTORY; do { 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 |