Also check that the sectormask is bigger than zero.
Wrap this overly long KASSERT and remove newline.
This commit is contained in:
parent
7f25933194
commit
1b27d1d3b9
@ -799,7 +799,9 @@ vnode_pager_generic_getpages(vp, m, bytecount, reqpage)
|
||||
*/
|
||||
if (dp->v_type == VBLK || dp->v_type == VCHR) {
|
||||
int secmask = dp->v_bufobj.bo_bsize - 1;
|
||||
KASSERT(secmask < PAGE_SIZE, ("vnode_pager_generic_getpages: sector size %d too large\n", secmask + 1));
|
||||
KASSERT(secmask < PAGE_SIZE && secmask > 0,
|
||||
("vnode_pager_generic_getpages: sector size %d too large",
|
||||
secmask + 1));
|
||||
size = (size + secmask) & ~secmask;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user