diff options
author | Maria Matejka <mq@ucw.cz> | 2022-03-09 09:13:31 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-03-09 09:13:31 +0100 |
commit | 0c59f7ff0112abd1261afb8f21b7c00fc5e37885 (patch) | |
tree | 729362d6345c02a59c1b46ae777b039873dd040e /lib/resource.h | |
parent | c20506dc07e1b99cf1d9f2cf9d00e9211cd9e2f4 (diff) |
Revert "Bound allocated pages to resource pools with page caches to avoid unnecessary syscalls"
This reverts commit 7f0e59820899c30a243c18556ce2e3fb72d6d221.
Diffstat (limited to 'lib/resource.h')
-rw-r--r-- | lib/resource.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/resource.h b/lib/resource.h index 26030aea..1b9fed33 100644 --- a/lib/resource.h +++ b/lib/resource.h @@ -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 /* |