diff options
author | Maria Matejka <mq@ucw.cz> | 2022-03-09 09:13:20 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-03-09 09:13:20 +0100 |
commit | 1c7df2c24029d6721745b99fd4137935db03e257 (patch) | |
tree | b0b5e1ab704e1744d90c195a30ab51c74133ffc6 /lib/slab.c | |
parent | 1740ff57e8ea05d7d9f15d1a6830ce42add3e4bd (diff) |
Revert "Multipage allocation"
This reverts commit 6cd37713781a3092f8166b2178fae35cbfec1e28.
Diffstat (limited to 'lib/slab.c')
-rw-r--r-- | lib/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |