git: fb231965f9b7 - stable/13 - mbuf: Properly set the default value for mb_use_ext_pgs

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sat, 21 May 2022 15:58:33 UTC
The branch stable/13 has been updated by markj:

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

commit fb231965f9b7b3930b19f95e454eb86b348e0640
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-11-16 21:23:11 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-05-21 15:49:43 +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
    
    (cherry picked from commit 32854e528ac6f99e019674f545d0a27940fb8bba)
---
 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 997ad16b211b..e0c98d459a28 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;
 	}