HomeFreeBSD

Fix arithmetical bug in vnode_pager_haspage(). The check against object size

Description

Fix arithmetical bug in vnode_pager_haspage(). The check against object size
should be done not with the number of pages in the first block, but with the
overall number of pages. While here, add KASSERT that makes sure that BMAP
doesn't return completely irrelevant blocks.

Reviewed by: kib
Tested by: pho
Sponsored by: Netflix
Sponsored by: Nginx, Inc.

Details

Provenance
glebiusAuthored on
Reviewer
pho
Parents
rS282425: Parse filename until first space then print the rest of the line after file
Branches
Unknown
Tags
Unknown