Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 2021 23:20:09 GMT
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9f32cb5b1c81 - main - Set uninitialized popmap bits in vm_reserv_init
Message-ID:  <202112052320.1B5NK9aA094797@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dougm:

URL: https://cgit.FreeBSD.org/src/commit/?id=9f32cb5b1c81ceed28491c031cd109811a5f5d7a

commit 9f32cb5b1c81ceed28491c031cd109811a5f5d7a
Author:     Doug Moore <dougm@FreeBSD.org>
AuthorDate: 2021-12-05 23:17:25 +0000
Commit:     Doug Moore <dougm@FreeBSD.org>
CommitDate: 2021-12-05 23:17:25 +0000

    Set uninitialized popmap bits in vm_reserv_init
    
    In vm_reserv_init, set all the marker popmap bits in vm_reserv_init,
    and not just the bits of the first popmap entry.
    
    Reviewed by:    markj
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D33258
---
 sys/vm/vm_reserv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c
index a9602c3977df..ca31eac964c0 100644
--- a/sys/vm/vm_reserv.c
+++ b/sys/vm/vm_reserv.c
@@ -1112,7 +1112,7 @@ vm_reserv_init(void)
 		 * partially populated reservation queues.
 		 */
 		rvd->marker.popcnt = VM_LEVEL_0_NPAGES;
-		for (j = 0; j < NBPOPMAP; j++)
+		for (j = 0; j < VM_LEVEL_0_NPAGES; j++)
 			popmap_set(rvd->marker.popmap, j);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112052320.1B5NK9aA094797>