mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Abstract-out the constants for the sequential heuristic.
No operational changes. MFC after: 1 day
This commit is contained in:
parent
45587e2514
commit
3a3d82ec0a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108357
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user