MM: generic lockless kmalloc and page cache

Change-Id: I71ad498fdd10136d9c72ffe2b16b9122d1bc9673
This commit is contained in:
Balazs Gerofi
2020-09-06 11:51:52 +09:00
committed by Masamichi Takagi
parent 41f5c0bdde
commit 10c09aa10e
3 changed files with 191 additions and 1 deletions

View File

@@ -20,10 +20,17 @@
* CPU Local Storage (cls)
*/
struct kmalloc_cache_header {
struct kmalloc_cache_header *next;
};
struct kmalloc_header {
unsigned int front_magic;
int cpu_id;
struct list_head list;
union {
struct list_head list;
struct kmalloc_cache_header *cache;
};
int size; /* The size of this chunk without the header */
unsigned int end_magic;
/* 32 bytes */