mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
fixup! Bound allocated pages to resource pools with page caches to avoid unnecessary syscalls
This commit is contained in:
parent
7f0e598208
commit
bea582cbb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user