Date: Mon, 22 Feb 2021 23:22:55 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 537f92cd3510 - main - uma: Update the comment above startup_alloc() to reflect reality Message-ID: <202102222322.11MNMt78070350@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=537f92cd351090c09b178a1749cd1d0326f74dc7 commit 537f92cd351090c09b178a1749cd1d0326f74dc7 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-02-22 23:21:49 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-02-22 23:22:51 +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 MFC after: 1 week --- 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?202102222322.11MNMt78070350>