diff options
author | Maria Matejka <mq@ucw.cz> | 2022-03-09 09:13:21 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-03-09 09:13:21 +0100 |
commit | c20506dc07e1b99cf1d9f2cf9d00e9211cd9e2f4 (patch) | |
tree | 1b025ae68fe144bc92c2b59ddc24c92ea94b4c96 /lib | |
parent | 1c7df2c24029d6721745b99fd4137935db03e257 (diff) |
Revert "fixup! Bound allocated pages to resource pools with page caches to avoid unnecessary syscalls"
This reverts commit bea582cbb53e30dd32a5b6829c7443e0e5558d11.
Diffstat (limited to 'lib')
-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 *) (((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 |