]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- If caller specifies readbehind and readahead that together with count
authorGleb Smirnoff <glebius@FreeBSD.org>
Thu, 17 Nov 2016 20:32:32 +0000 (20:32 +0000)
committerGleb Smirnoff <glebius@FreeBSD.org>
Thu, 17 Nov 2016 20:32:32 +0000 (20:32 +0000)
commite48b82bd83d575969153661a3b4c9d83187bdfa7
tree24a082023bd2191691927a91fda4165e34e03dd7
parentb22fe30db1bdbc42c38e882e3006be162cfe3b14
- If caller specifies readbehind and readahead that together with count
  doesn't fit into a buf, then trim readbehind and readahead evenly.  If
  rbehind was limited by the previous BMAP, then roundup its trim to
  block size.
- Add KASSERT to check that b_blkno has proper offset from original
  blkno returned by BMAP. [1]
- Add KASSERT to check that pages in buf are consecutive.

Reviewed by: kib
Submitted by: kib [1]
sys/vm/vnode_pager.c