git: 32854e528ac6 - main - mbuf: Properly set the default value for mb_use_ext_pgs

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 16 Nov 2021 21:26:53 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=32854e528ac6f99e019674f545d0a27940fb8bba

commit 32854e528ac6f99e019674f545d0a27940fb8bba
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-11-16 21:23:11 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-11-16 21:23:11 +0000

    mbuf: Properly set the default value for mb_use_ext_pgs
    
    Reported by:    Jenkins
    Fixes:  fcaa890c4469 ("mbuf: Only allow extpg mbufs if the system has a direct map")
    Pointy hat:     markj
---
 sys/kern/kern_mbuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c
index 78a270189a4b..af00bf8182ac 100644
--- a/sys/kern/kern_mbuf.c
+++ b/sys/kern/kern_mbuf.c
@@ -197,7 +197,7 @@ tunable_mbinit(void *dummy)
 	 * map.
 	 */
 	if (PMAP_HAS_DMAP) {
-		extpg = mb_use_ext_pgs;
+		extpg = 1;
 		TUNABLE_INT_FETCH("kern.ipc.mb_use_ext_pgs", &extpg);
 		mb_use_ext_pgs = extpg != 0;
 	}