From nobody Fri Sep 30 02:04:21 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 4Mdtnx3xNpz4ddxX; Fri, 30 Sep 2022 02:04:21 +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 4Mdtnx2ysPz3fm4; Fri, 30 Sep 2022 02:04:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664503461; 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=WthK2ldo7HC+0vmEn9O+TV9HuNfps084IAYbf9RATWM=; b=tdjA9wKbPzEadMmAVWhizd2NPUqNXwgv+WWsMcwihd9Sb1jlnbxK/vCRyRWg7KXyIBAFfy g1Wb+EXC1J6azBb9weQqWEgnKlMnJ/GzkDVrTOPl/K75OalKLd6JYVIZtYok5jbAPtoVQD dkZZ6/kkeWvJYGyTowTWwEdvvM0Czfq6iK3saWHyo8CuaMzCtmWnCMVrgrI8WJH4ihuf2e dlLqFutMrDuzZy6VNVtarHnV6ggQzcvHX3vCKHkx8SjlCkW8BugKfekPRNRgo2+PmU4bGp vqtS8Y88NVcrqD0sJSugDBQh8EhdxscK6REzynRm/qJoJXHVdUQElxWWN4ERgQ== 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 4Mdtnx20g7z11RH; Fri, 30 Sep 2022 02:04:21 +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 28U24LDu099369; Fri, 30 Sep 2022 02:04:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28U24LCL099368; Fri, 30 Sep 2022 02:04:21 GMT (envelope-from git) Date: Fri, 30 Sep 2022 02:04:21 GMT Message-Id: <202209300204.28U24LCL099368@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 74ffdb90e9d3 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 74ffdb90e9d3b2ad491b2663918deeff0fd6568e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664503461; 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=WthK2ldo7HC+0vmEn9O+TV9HuNfps084IAYbf9RATWM=; b=f4YUGiW+SOdbeEpag9HFPpLH7k2NxZHsXQhAKHCMKNfciulhszhHeShsYueZgtIDU/cB0U Ms/AZTmojroH+EO/ARzCqsx1vKln6eKS/hNIMJxO1D5QD/GQYevSDPWQc/XFfhD2NXt7Fb I0LhlT89ha3z+XNzKbrB++TgEINHS9oMRqpHZcN0moS0f4p9QQGt6P2tUVJ7/FEk8lmKf9 JpV2FSZd1TSa69SpJhFHbPhY+4qRtgdpKz+8xaZ24tpBZkWntMe3nQ0isa+czsBSziBuAX 3WFbJCs2kHkdXdayGG1QzllNdMGpMuq1QdosOvU5F+aMLXWUPPFSZTUXOpQqQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664503461; a=rsa-sha256; cv=none; b=BULHae46frATQEiyLEi3DoLnJSF674ApzoVbnFsg+M2I1+PdwB173BNQEy70t3+lQXjPrn Ajejmgy2AwrrrrsN/G83LzVFuTSBiH4frgx+kjCGvn3LS6wOVw/3y9OlmdUXSYtuVfZCQo 6/hAh8HRz8NJB7ULDWybyJvDO4lu1iRQh90YV2pMwmlsFzSIX1tVmOHsfIZ1S4dHYf7cMU 5/f9N98YHzXABH/J6eNRYzIlVmeNdZHJrGf0NImb+aqq4lCbHqow4X8T9JKn4qCj9DiLKb FnRHBSuVTaeSp37+QsCi2a1ov/LplqgtRf8FZkrBEig8pOve7IvhqChvOMtAaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=74ffdb90e9d3b2ad491b2663918deeff0fd6568e commit 74ffdb90e9d3b2ad491b2663918deeff0fd6568e Author: Konstantin Belousov AuthorDate: 2022-09-16 22:44:39 +0000 Commit: Konstantin Belousov CommitDate: 2022-09-30 00:29:10 +0000 vm/vm.h: cleanup (cherry picked from commit 55c5216582f42c31c74e47b924d2b787d1383878) --- 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 7e29f9fd3370..8466ceef45ca 100644 --- a/sys/vm/vm.h +++ b/sys/vm/vm.h @@ -154,30 +154,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 */