summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-10-13 18:59:45 +0200
committerMaria Matejka <mq@ucw.cz>2021-10-13 18:59:45 +0200
commitbea582cbb53e30dd32a5b6829c7443e0e5558d11 (patch)
treed4d594187d1985bd7444a9c879ba875d4141a8af /lib
parent7f0e59820899c30a243c18556ce2e3fb72d6d221 (diff)
fixup! Bound allocated pages to resource pools with page caches to avoid unnecessary syscalls
Diffstat (limited to 'lib')
-rw-r--r--lib/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slab.c b/lib/slab.c
index 70aa776a..2fc88ee0 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