Date: Mon, 1 Mar 2021 00:32:33 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: ba0d063cd6a5 - stable/13 - uma: Update the comment above startup_alloc() to reflect reality Message-ID: <202103010032.1210WXXW071768@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ba0d063cd6a5b7b6218242a866169a2d8fe32f17 commit ba0d063cd6a5b7b6218242a866169a2d8fe32f17 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-02-22 23:21:49 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-03-01 00:31:58 +0000 uma: Update the comment above startup_alloc() to reflect reality The scheme used for early slab allocations changed in commit a81c400e75. Reported by: alc Reviewed by: alc (cherry picked from commit 537f92cd351090c09b178a1749cd1d0326f74dc7) --- sys/vm/uma_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 0b6e02861785..8cbd1216678a 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -1642,9 +1642,9 @@ fail: } /* - * This function is intended to be used early on in place of page_alloc() so - * that we may use the boot time page cache to satisfy allocations before - * the VM is ready. + * This function is intended to be used early on in place of page_alloc(). It + * performs contiguous physical memory allocations and uses a bump allocator for + * KVA, so is usable before the kernel map is initialized. */ static void * startup_alloc(uma_zone_t zone, vm_size_t bytes, int domain, uint8_t *pflag,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103010032.1210WXXW071768>