git: ccdaa1ab1c5f - main - vm_overcommit: put into __read_mostly section

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 16 Sep 2022 20:25:33 UTC
The branch main has been updated by kib:

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

commit ccdaa1ab1c5fec116d02cad37626d13fbdf77352
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-09-13 10:00:12 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-09-16 20:23:04 +0000

    vm_overcommit: put into __read_mostly section
    
    Suggested by:   mjg
    Reviewed by:    brooks, imp (previous version)
    Discussed with: markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      2 weeks
    Differential revision:  https://reviews.freebsd.org/D36540
---
 sys/vm/swap_pager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 071296ad6443..d71d2ff27e6a 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -169,7 +169,7 @@ SYSCTL_PROC(_vm, OID_AUTO, swap_total, CTLTYPE_U64 | CTLFLAG_RD | CTLFLAG_MPSAFE
     &swap_total, 0, sysctl_page_shift, "QU",
     "Total amount of available swap storage.");
 
-int vm_overcommit = 0;
+int vm_overcommit __read_mostly = 0;
 SYSCTL_INT(_vm, VM_OVERCOMMIT, overcommit, CTLFLAG_RW, &vm_overcommit, 0,
     "Configure virtual memory overcommit behavior. See tuning(7) "
     "for details.");