kmalloc cache: embed cache pointer into kmalloc_header

Conflicts:
	kernel/mem.c
This commit is contained in:
Balazs Gerofi
2017-08-24 17:35:51 +09:00
parent 5353b11f90
commit 4dea1842e0
4 changed files with 110 additions and 10 deletions

View File

@@ -41,6 +41,12 @@ static inline void INIT_LIST_HEAD(struct list_head *list)
list->prev = list;
}
static inline void ZERO_LIST_HEAD(struct list_head *list)
{
list->next = 0;
list->prev = 0;
}
/*
* Insert a new entry between two known consecutive entries.
*