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:
parent
1cbd030b6d
commit
6702ac5ced
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user