]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vm_page_startup: correct calculation of the starting page
authorKonstantin Belousov <kib@FreeBSD.org>
Fri, 17 Sep 2021 18:48:42 +0000 (21:48 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Sun, 19 Sep 2021 18:27:55 +0000 (21:27 +0300)
commitbd3a668087efb02e8e84315f7cc29d3813270dff
tree3077843da741f61d957b01fd5786c77f23fb80df
parent5f8cb13cfb0c91a4ec1a9648a3ae245b1dff36f6
vm_page_startup: correct calculation of the starting page

Also avoid unneded calculations when phys segment end is the phys_avail[]
start.

Submitted by: alc
Reviewed by: markj
MFC after: 1 week
Fixes: 181bfb42fd01bfa9f46
Differential revision: https://reviews.freebsd.org/D32009
sys/vm/vm_page.c