From: Maria Matejka Date: Wed, 9 Mar 2022 08:13:21 +0000 (+0100) Subject: Revert "fixup! Bound allocated pages to resource pools with page caches to avoid... X-Git-Tag: v2.0.11~67^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c20506dc07e1b99cf1d9f2cf9d00e9211cd9e2f4;p=thirdparty%2Fbird.git Revert "fixup! Bound allocated pages to resource pools with page caches to avoid unnecessary syscalls" This reverts commit bea582cbb53e30dd32a5b6829c7443e0e5558d11. --- diff --git a/lib/slab.c b/lib/slab.c index 2fc88ee08..70aa776a9 100644 --- a/lib/slab.c +++ b/lib/slab.c @@ -178,7 +178,7 @@ struct sl_alignment { /* Magic structure for testing of alignment */ int x[0]; }; -#define SL_GET_HEAD(x) ((struct sl_head *) (((uintptr_t) (x)) & ~(page_size-1))) +#define SL_GET_HEAD(x) ((struct sl_head *) (((uintptr_t) (x)) & ~(get_page_size()-1))) /** * sl_new - create a new Slab