Skip to content

Commit 2c8296f

Browse files
committed
Merge branch 'slub-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/christoph/vm
* 'slub-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/christoph/vm: Explain kmem_cache_cpu fields SLUB: Do not upset lockdep SLUB: Fix coding style violations Add parameter to add_partial to avoid having two functions SLUB: rename defrag to remote_node_defrag_ratio Move count_partial before kmem_cache_shrink SLUB: Fix sysfs refcounting slub: fix shadowed variable sparse warnings
2 parents d2fc0ba + da89b79 commit 2c8296f

2 files changed

Lines changed: 108 additions & 89 deletions

File tree

‎include/linux/slub_def.h‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
#include <linux/kobject.h>
1313

1414
struct kmem_cache_cpu {
15-
void **freelist;
16-
struct page *page;
17-
int node;
18-
unsigned int offset;
19-
unsigned int objsize;
15+
void **freelist; /* Pointer to first free per cpu object */
16+
struct page *page; /* The slab from which we are allocating */
17+
int node; /* The node of the page (or -1 for debug) */
18+
unsigned int offset; /* Freepointer offset (in word units) */
19+
unsigned int objsize; /* Size of an object (from kmem_cache) */
2020
};
2121

2222
struct kmem_cache_node {
@@ -59,7 +59,10 @@ struct kmem_cache {
5959
#endif
6060

6161
#ifdef CONFIG_NUMA
62-
int defrag_ratio;
62+
/*
63+
* Defragmentation by allocating from a remote node.
64+
*/
65+
int remote_node_defrag_ratio;
6366
struct kmem_cache_node *node[MAX_NUMNODES];
6467
#endif
6568
#ifdef CONFIG_SMP

0 commit comments

Comments
 (0)