X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fslub_def.h;h=a1f90528e70bf5e3e637b95549b4e08e62cbbec2;hb=8302294f43250dc337108c51882a6007f2b1e2e0;hp=9e3a575b2c30272ced3b97c115fb2b87925db392;hpb=12e87e36e0141c08dbc8b2177c93c75fb18ad7e5;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index 9e3a575b2c3..a1f90528e70 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h @@ -47,7 +47,6 @@ struct kmem_cache_cpu { struct kmem_cache_node { spinlock_t list_lock; /* Protect partial list and nr_partial */ unsigned long nr_partial; - unsigned long min_partial; struct list_head partial; #ifdef CONFIG_SLUB_DEBUG atomic_long_t nr_slabs; @@ -90,6 +89,7 @@ struct kmem_cache { void (*ctor)(void *); int inuse; /* Offset to metadata */ int align; /* Alignment */ + unsigned long min_partial; const char *name; /* Name (only for display!) */ struct list_head list; /* List of slab caches */ #ifdef CONFIG_SLUB_DEBUG @@ -130,9 +130,9 @@ struct kmem_cache { * This should be dropped to PAGE_SIZE / 2 once the page allocator * "fastpath" becomes competitive with the slab allocator fastpaths. */ -#define SLUB_MAX_SIZE (PAGE_SIZE) +#define SLUB_MAX_SIZE (2 * PAGE_SIZE) -#define SLUB_PAGE_SHIFT (PAGE_SHIFT + 1) +#define SLUB_PAGE_SHIFT (PAGE_SHIFT + 2) /* * We keep the general caches in an array of slab caches that are used for