Fix the KASSERT and improve wording in r282426.
Submitted by: alc
This commit is contained in:
parent
b45fa3fad6
commit
d2596d179a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282522
@ -342,12 +342,12 @@ vnode_pager_haspage(vm_object_t object, vm_pindex_t pindex, int *before,
|
||||
if (after) {
|
||||
/*
|
||||
* The BMAP vop can report a partial block in the
|
||||
* 'after', but must not count blocks after EOF.
|
||||
* 'after', but must not report blocks after EOF.
|
||||
* Assert the latter, and truncate 'after' in case
|
||||
* of the former.
|
||||
*/
|
||||
KASSERT(reqblock + *after <=
|
||||
object->size * pagesperblock,
|
||||
KASSERT((reqblock + *after) * pagesperblock <
|
||||
roundup2(object->size, pagesperblock),
|
||||
("%s: reqblock %jd after %d size %ju", __func__,
|
||||
(intmax_t )reqblock, *after,
|
||||
(uintmax_t )object->size));
|
||||
|
Loading…
Reference in New Issue
Block a user