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:
bde 2018-12-22 09:31:55 +00:00
parent 1cbd030b6d
commit 6702ac5ced

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