fcntl: style changes to r349248
Reported by: bde MFC after: 2 weeks MFC-With: 349248 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
9349d37845
commit
4f53d57e8c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349391
@ -499,10 +499,8 @@ sequential_heuristic(struct uio *uio, struct file *fp)
|
|||||||
* closely related to the best I/O size for real disks than
|
* closely related to the best I/O size for real disks than
|
||||||
* to any block size used by software.
|
* to any block size used by software.
|
||||||
*/
|
*/
|
||||||
fp->f_seqcount += MIN(IO_SEQMAX,
|
fp->f_seqcount += lmin(IO_SEQMAX,
|
||||||
howmany(uio->uio_resid, 16384));
|
howmany(uio->uio_resid, 16384));
|
||||||
if (fp->f_seqcount > IO_SEQMAX)
|
|
||||||
fp->f_seqcount = IO_SEQMAX;
|
|
||||||
return (fp->f_seqcount << IO_SEQSHIFT);
|
return (fp->f_seqcount << IO_SEQSHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user