git: 55c5216582f4 - main - vm/vm.h: cleanup
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 Sep 2022 08:59:08 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=55c5216582f42c31c74e47b924d2b787d1383878 commit 55c5216582f42c31c74e47b924d2b787d1383878 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-09-16 22:44:39 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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 */