diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-22 12:36:23 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-22 12:36:23 -0400 |
| commit | 14577beb8293c187a12d2e78ac6250d5dcec2190 (patch) | |
| tree | cca4d8feba497870e3a5936ba2a65c68ce4ddf6b /include/linux | |
| parent | 09b9cc44c942256026bf7a63fec2155b8f488899 (diff) | |
| parent | e8c500c2b64b6e237e67ecba7249e72363c47047 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
slub: Dont define useless label in the !CONFIG_CMPXCHG_LOCAL case
slab,rcu: don't assume the size of struct rcu_head
slub,rcu: don't assume the size of struct rcu_head
slub: automatically reserve bytes at the end of slab
Lockless (and preemptless) fastpaths for slub
slub: Get rid of slab_free_hook_irq()
slub: min_partial needs to be in first cacheline
slub: fix ksize() build error
slub: fix kmemcheck calls to match ksize() hints
Revert "slab: Fix missing DEBUG_SLAB last user"
mm: Remove support for kmem_cache_name()
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/slab.h | 1 | ||||
| -rw-r--r-- | include/linux/slub_def.h | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index fa9086647eb7..ad4dd1c8d30a 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
| @@ -105,7 +105,6 @@ void kmem_cache_destroy(struct kmem_cache *); | |||
| 105 | int kmem_cache_shrink(struct kmem_cache *); | 105 | int kmem_cache_shrink(struct kmem_cache *); |
| 106 | void kmem_cache_free(struct kmem_cache *, void *); | 106 | void kmem_cache_free(struct kmem_cache *, void *); |
| 107 | unsigned int kmem_cache_size(struct kmem_cache *); | 107 | unsigned int kmem_cache_size(struct kmem_cache *); |
| 108 | const char *kmem_cache_name(struct kmem_cache *); | ||
| 109 | 108 | ||
| 110 | /* | 109 | /* |
| 111 | * Please use this macro to create slab caches. Simply specify the | 110 | * Please use this macro to create slab caches. Simply specify the |
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index 8b6e8ae5d5ca..90fbb6d87e11 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h | |||
| @@ -35,7 +35,10 @@ enum stat_item { | |||
| 35 | NR_SLUB_STAT_ITEMS }; | 35 | NR_SLUB_STAT_ITEMS }; |
| 36 | 36 | ||
| 37 | struct kmem_cache_cpu { | 37 | struct kmem_cache_cpu { |
| 38 | void **freelist; /* Pointer to first free per cpu object */ | 38 | void **freelist; /* Pointer to next available object */ |
| 39 | #ifdef CONFIG_CMPXCHG_LOCAL | ||
| 40 | unsigned long tid; /* Globally unique transaction id */ | ||
| 41 | #endif | ||
| 39 | struct page *page; /* The slab from which we are allocating */ | 42 | struct page *page; /* The slab from which we are allocating */ |
| 40 | int node; /* The node of the page (or -1 for debug) */ | 43 | int node; /* The node of the page (or -1 for debug) */ |
| 41 | #ifdef CONFIG_SLUB_STATS | 44 | #ifdef CONFIG_SLUB_STATS |
| @@ -70,6 +73,7 @@ struct kmem_cache { | |||
| 70 | struct kmem_cache_cpu __percpu *cpu_slab; | 73 | struct kmem_cache_cpu __percpu *cpu_slab; |
| 71 | /* Used for retriving partial slabs etc */ | 74 | /* Used for retriving partial slabs etc */ |
| 72 | unsigned long flags; | 75 | unsigned long flags; |
| 76 | unsigned long min_partial; | ||
| 73 | int size; /* The size of an object including meta data */ | 77 | int size; /* The size of an object including meta data */ |
| 74 | int objsize; /* The size of an object without meta data */ | 78 | int objsize; /* The size of an object without meta data */ |
| 75 | int offset; /* Free pointer offset. */ | 79 | int offset; /* Free pointer offset. */ |
| @@ -83,7 +87,7 @@ struct kmem_cache { | |||
| 83 | void (*ctor)(void *); | 87 | void (*ctor)(void *); |
| 84 | int inuse; /* Offset to metadata */ | 88 | int inuse; /* Offset to metadata */ |
| 85 | int align; /* Alignment */ | 89 | int align; /* Alignment */ |
| 86 | unsigned long min_partial; | 90 | int reserved; /* Reserved bytes at the end of slabs */ |
| 87 | const char *name; /* Name (only for display!) */ | 91 | const char *name; /* Name (only for display!) */ |
| 88 | struct list_head list; /* List of slab caches */ | 92 | struct list_head list; /* List of slab caches */ |
| 89 | #ifdef CONFIG_SYSFS | 93 | #ifdef CONFIG_SYSFS |
