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

@@ -2224,6 +2224,7 @@ split_and_return:
}
list_del(&chunk->list);
ZERO_LIST_HEAD(&chunk->list);
cpu_restore_interrupt(kmalloc_irq_flags);
return ((void *)chunk + sizeof(struct kmalloc_header));
}