1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

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.
This commit is contained in:
Bruce Evans 2018-12-22 09:31:55 +00:00
parent ac0a7e2a3c
commit 5ef4f86d7a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342364

View File

@ -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);
/*