From: Maria Matejka Date: Wed, 13 Oct 2021 16:59:45 +0000 (+0200) Subject: fixup! Bound allocated pages to resource pools with page caches to avoid unnecessary... X-Git-Tag: 3.0-alpha0~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bea582cbb53e30dd32a5b6829c7443e0e5558d11;p=thirdparty%2Fbird.git fixup! Bound allocated pages to resource pools with page caches to avoid unnecessary syscalls --- diff --git a/lib/slab.c b/lib/slab.c index 70aa776a9..2fc88ee08 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)) & ~(get_page_size()-1))) +#define SL_GET_HEAD(x) ((struct sl_head *) (((uintptr_t) (x)) & ~(page_size-1))) /** * sl_new - create a new Slab