From nobody Sat Sep 17 08:59:08 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MV4cY25MBz4c1Wb; Sat, 17 Sep 2022 08:59:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MV4cY1bLmz3g4G; Sat, 17 Sep 2022 08:59:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663405149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KvBINQEu8w9WFLOFyTITbsn1XeOCp97oxrgMhss0My0=; b=jPu4RwmjgIM3/WtKnmBKpLWJvN/IE4aYWX8myIudWm7jABOOf9gQnc8VMR5t4Re2i6HiXj DbPk9bUYf/ZNLCjSG4UYxNAZvSE/vu2viLBgW8/2I7uNAQ2DCwEIGwpQT7rl1oreXHKq5X RlZiXT8vzLPliJJ6W1WbUjmd2yk5arpXv5w/UPq9cL0/LxEjG0RA2o3W/4s1r1RdjhrtMY MUUHM2Kx3XlVUr5xTiulw88qDLN/yLzYxGP0xLsBR25rrO4huHWqAqfNrcDy4+Y0hCLVKG GIbvfIkeMeG51/55xGH56q3a6l48K3FVLKP6goxqi/yAl8P4H0Y29GFkftvWOg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MV4cY0fJkzfk7; Sat, 17 Sep 2022 08:59:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28H8x8pp059888; Sat, 17 Sep 2022 08:59:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28H8x8cP059887; Sat, 17 Sep 2022 08:59:08 GMT (envelope-from git) Date: Sat, 17 Sep 2022 08:59:08 GMT Message-Id: <202209170859.28H8x8cP059887@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 55c5216582f4 - main - vm/vm.h: cleanup List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 55c5216582f42c31c74e47b924d2b787d1383878 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663405149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KvBINQEu8w9WFLOFyTITbsn1XeOCp97oxrgMhss0My0=; b=f/OP5KXNoen9ui+my8rrjSyP/PHysYpH4hDjr8Gscmssbr5ZwbBHHP3/MMeeP9mFooY8+J eu2S4+Nf9vQRIyLnUSzWEArp6AsGCMU5o+ea3w/V10VcSQvHasyPkE/Vkl3kwh7rAOX15y 2eKanblXV9NL2ulXYVI7UwbyU3336+VuFEAZdf50wr11BA7212F6X7QQ94dB55saspPn+S 6McBNT8qw7oIfe7R7Ce5+z8bnzNGMBvKBcezNiEdRX/4NvNKszKqKIl8oNqeZUVCEFMpi2 153ZYBNwOs0QMBjfcGH3yEeoTB2SfSJUCpp8dwx/mE3hr5esQEK02AnLMKX1Xw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663405149; a=rsa-sha256; cv=none; b=nqf2uJyed1YXnA2fngztLIkzz5zSjn3vr/nHuKv5GlW8oFW0eCvrM26BROFwA9055y9KXm AGbkh8AJhAEmqeCWXwY+Xegs0G8c9L/Bz1aR/RwbTmuZu/1Xx9Zg5E8xYhz0GUWPSsx7+y 5ibT1EtRi5m2OghmJXKDNIH3pwo5J6z07f6qKGeeo0zYWeyrgy9N1CgtHsdIiVM5xN9Sk6 OYxugK4Sv4UwkBNLEATiwXcloFEXEtGZVhSuklvvtrqMahL23qT17jLWP0NTYXMnVqyS77 OLswNhY/qXu21r/30yIZVL/S2Vp6O+KZ1dqx46/WilY7mXf4r9LKY7W/vDZruA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=55c5216582f42c31c74e47b924d2b787d1383878 commit 55c5216582f42c31c74e47b924d2b787d1383878 Author: Konstantin Belousov AuthorDate: 2022-09-16 22:44:39 +0000 Commit: Konstantin Belousov CommitDate: 2022-09-17 08:58:52 +0000 vm/vm.h: cleanup Move declarations for in-kernel function and variables to _KERNEL section. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D36612 --- sys/vm/vm.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/sys/vm/vm.h b/sys/vm/vm.h index df53dc340ecd..0932d9b791e1 100644 --- a/sys/vm/vm.h +++ b/sys/vm/vm.h @@ -155,30 +155,29 @@ struct kva_md_info { vm_offset_t clean_eva; }; -#define VA_IS_CLEANMAP(va) \ - ((va) >= kmi.clean_sva && (va) < kmi.clean_eva) - -extern struct kva_md_info kmi; -extern void vm_ksubmap_init(struct kva_md_info *); - -extern int old_mlock; - -extern int vm_ndomains; - /* bits from overcommit */ #define SWAP_RESERVE_FORCE_ON (1 << 0) #define SWAP_RESERVE_RLIMIT_ON (1 << 1) #define SWAP_RESERVE_ALLOW_NONWIRED (1 << 2) -extern int vm_overcommit; #ifdef _KERNEL struct ucred; + +void vm_ksubmap_init(struct kva_md_info *); bool swap_reserve(vm_ooffset_t incr); bool swap_reserve_by_cred(vm_ooffset_t incr, struct ucred *cred); void swap_reserve_force(vm_ooffset_t incr); void swap_release(vm_ooffset_t decr); void swap_release_by_cred(vm_ooffset_t decr, struct ucred *cred); void swapper(void); -#endif + +extern struct kva_md_info kmi; +#define VA_IS_CLEANMAP(va) \ + ((va) >= kmi.clean_sva && (va) < kmi.clean_eva) + +extern int old_mlock; +extern int vm_ndomains; +extern int vm_overcommit; +#endif /* _KERNEL */ #endif /* VM_H */