Commit 02979dcb authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] slab: stop using page.list

slab.c is using page->list.  Switch it over to using page->lru so we can
remove page.list.
parent c33c9e78
...@@ -462,10 +462,10 @@ static int slab_break_gfp_order = BREAK_GFP_ORDER_LO; ...@@ -462,10 +462,10 @@ static int slab_break_gfp_order = BREAK_GFP_ORDER_LO;
* global 'mem_map'. These are used to find the slab an obj belongs to. * global 'mem_map'. These are used to find the slab an obj belongs to.
* With kfree(), these are used to find the cache which an obj belongs to. * With kfree(), these are used to find the cache which an obj belongs to.
*/ */
#define SET_PAGE_CACHE(pg,x) ((pg)->list.next = (struct list_head *)(x)) #define SET_PAGE_CACHE(pg,x) ((pg)->lru.next = (struct list_head *)(x))
#define GET_PAGE_CACHE(pg) ((kmem_cache_t *)(pg)->list.next) #define GET_PAGE_CACHE(pg) ((kmem_cache_t *)(pg)->lru.next)
#define SET_PAGE_SLAB(pg,x) ((pg)->list.prev = (struct list_head *)(x)) #define SET_PAGE_SLAB(pg,x) ((pg)->lru.prev = (struct list_head *)(x))
#define GET_PAGE_SLAB(pg) ((struct slab *)(pg)->list.prev) #define GET_PAGE_SLAB(pg) ((struct slab *)(pg)->lru.prev)
/* These are the default caches for kmalloc. Custom caches can have other sizes. */ /* These are the default caches for kmalloc. Custom caches can have other sizes. */
struct cache_sizes malloc_sizes[] = { struct cache_sizes malloc_sizes[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment