From 1c7df2c24029d6721745b99fd4137935db03e257 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 9 Mar 2022 09:13:20 +0100 Subject: Revert "Multipage allocation" This reverts commit 6cd37713781a3092f8166b2178fae35cbfec1e28. --- lib/slab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/slab.c') diff --git a/lib/slab.c b/lib/slab.c index 6348e29b..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 *) PAGE_HEAD(x)) +#define SL_GET_HEAD(x) ((struct sl_head *) (((uintptr_t) (x)) & ~(page_size-1))) /** * sl_new - create a new Slab -- cgit v1.2.3