Date: Fri, 30 Sep 2022 02:04:21 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 74ffdb90e9d3 - stable/13 - vm/vm.h: cleanup Message-ID: <202209300204.28U24LCL099368@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=74ffdb90e9d3b2ad491b2663918deeff0fd6568e commit 74ffdb90e9d3b2ad491b2663918deeff0fd6568e Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-09-16 22:44:39 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209300204.28U24LCL099368>