]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Revert "fixup! Bound allocated pages to resource pools with page caches to avoid...
authorMaria Matejka <mq@ucw.cz>
Wed, 9 Mar 2022 08:13:21 +0000 (09:13 +0100)
committerMaria Matejka <mq@ucw.cz>
Wed, 9 Mar 2022 08:13:21 +0000 (09:13 +0100)
This reverts commit bea582cbb53e30dd32a5b6829c7443e0e5558d11.

lib/slab.c

index 2fc88ee08e5a05588ff9872ca65821b7d8b503fe..70aa776a9be6d7506fa9aa267c729f0473015979 100644 (file)
@@ -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