svn commit: r342364 - head/sys/kern
Bruce Evans
bde at FreeBSD.org
Sat Dec 22 09:31:56 UTC 2018
Author: bde
Date: Sat Dec 22 09:31:55 2018
New Revision: 342364
URL: https://svnweb.freebsd.org/changeset/base/342364
Log:
Oops, rounddown() for the start was misspelled roundup() in r342295,
so only aligned starts worked. This broke releasing caches in most
cases where the i/o size is smaller than the fs block size.
Modified:
head/sys/kern/vfs_default.c
Modified: head/sys/kern/vfs_default.c
==============================================================================
--- head/sys/kern/vfs_default.c Sat Dec 22 06:08:06 2018 (r342363)
+++ head/sys/kern/vfs_default.c Sat Dec 22 09:31:55 2018 (r342364)
@@ -1094,7 +1094,7 @@ vop_stdadvise(struct vop_advise_args *ap)
* pages usually remain in VMIO for some time.
*/
bsize = vp->v_bufobj.bo_bsize;
- bstart = roundup(ap->a_start, bsize);
+ bstart = rounddown(ap->a_start, bsize);
bend = roundup(ap->a_end, bsize);
/*
More information about the svn-src-all
mailing list