]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
fixup! Bound allocated pages to resource pools with page caches to avoid unnecessary...
authorMaria Matejka <mq@ucw.cz>
Wed, 13 Oct 2021 16:59:45 +0000 (18:59 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 13 Oct 2021 16:59:45 +0000 (18:59 +0200)
lib/slab.c

index 70aa776a9be6d7506fa9aa267c729f0473015979..2fc88ee08e5a05588ff9872ca65821b7d8b503fe 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)) & ~(get_page_size()-1)))
+#define SL_GET_HEAD(x) ((struct sl_head *) (((uintptr_t) (x)) & ~(page_size-1)))
 
 /**
  * sl_new - create a new Slab