Geom_grow: Don't take tsdn at init.

It's never used.
This commit is contained in:
David Goldblatt 2020-08-07 18:26:52 -07:00 committed by David Goldblatt
parent ffe552223c
commit c57494879f
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ geom_grow_size_commit(geom_grow_t *geom_grow, pszind_t skip) {
}
bool geom_grow_init(tsdn_t *tsdn, geom_grow_t *geom_grow);
bool geom_grow_init(geom_grow_t *geom_grow);
void geom_grow_prefork(tsdn_t *tsdn, geom_grow_t *geom_grow);
void geom_grow_postfork_parent(tsdn_t *tsdn, geom_grow_t *geom_grow);
void geom_grow_postfork_child(tsdn_t *tsdn, geom_grow_t *geom_grow);

View File

@ -2,7 +2,7 @@
#include "jemalloc/internal/jemalloc_internal_includes.h"
bool
geom_grow_init(tsdn_t *tsdn, geom_grow_t *geom_grow) {
geom_grow_init(geom_grow_t *geom_grow) {
geom_grow->next = sz_psz2ind(HUGEPAGE);
geom_grow->limit = sz_psz2ind(SC_LARGE_MAXCLASS);
if (malloc_mutex_init(&geom_grow->mtx, "extent_grow",

View File

@ -68,7 +68,7 @@ pac_init(tsdn_t *tsdn, pac_t *pac, base_t *base, emap_t *emap,
ind, /* delay_coalesce */ false)) {
return true;
}
if (geom_grow_init(tsdn, &pac->geom_grow)) {
if (geom_grow_init(&pac->geom_grow)) {
return true;
}
if (decay_init(&pac->decay_dirty, cur_time, dirty_decay_ms)) {