1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Revert "Bound allocated pages to resource pools with page caches to avoid unnecessary syscalls"

This reverts commit 7f0e598208.
This commit is contained in:
Maria Matejka
2022-03-09 09:13:31 +01:00
parent c20506dc07
commit 0c59f7ff01
4 changed files with 35 additions and 92 deletions

View File

@@ -94,12 +94,10 @@ void sl_free(slab *, void *);
void buffer_realloc(void **buf, unsigned *size, unsigned need, unsigned item_size);
extern long page_size;
/* Allocator of whole pages; for use in slabs and other high-level allocators. */
void *alloc_page(pool *);
void free_page(pool *, void *);
#define PAGE_HEAD(x) ((void *) (((intptr_t) (x)) & ~(page_size-1)))
u64 get_page_size(void);
void *alloc_page(void);
void free_page(void *);
#ifdef HAVE_LIBDMALLOC
/*