git: 537f92cd3510 - main - uma: Update the comment above startup_alloc() to reflect reality

Mark Johnston markj at FreeBSD.org
Mon Feb 22 23:22:55 UTC 2021


The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=537f92cd351090c09b178a1749cd1d0326f74dc7

commit 537f92cd351090c09b178a1749cd1d0326f74dc7
Author:     Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-02-22 23:21:49 +0000
Commit:     Mark Johnston <markj at 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,


More information about the dev-commits-src-all mailing list