aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 479eb5c01917..55b508df62a3 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -252,9 +252,10 @@ static int sysfs_slab_add(struct kmem_cache *);
252static int sysfs_slab_alias(struct kmem_cache *, const char *); 252static int sysfs_slab_alias(struct kmem_cache *, const char *);
253static void sysfs_slab_remove(struct kmem_cache *); 253static void sysfs_slab_remove(struct kmem_cache *);
254#else 254#else
255static int sysfs_slab_add(struct kmem_cache *s) { return 0; } 255static inline int sysfs_slab_add(struct kmem_cache *s) { return 0; }
256static int sysfs_slab_alias(struct kmem_cache *s, const char *p) { return 0; } 256static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p)
257static void sysfs_slab_remove(struct kmem_cache *s) {} 257 { return 0; }
258static inline void sysfs_slab_remove(struct kmem_cache *s) {}
258#endif 259#endif
259 260
260/******************************************************************** 261/********************************************************************
@@ -1395,7 +1396,7 @@ static void deactivate_slab(struct kmem_cache *s, struct page *page, int cpu)
1395 unfreeze_slab(s, page); 1396 unfreeze_slab(s, page);
1396} 1397}
1397 1398
1398static void flush_slab(struct kmem_cache *s, struct page *page, int cpu) 1399static inline void flush_slab(struct kmem_cache *s, struct page *page, int cpu)
1399{ 1400{
1400 slab_lock(page); 1401 slab_lock(page);
1401 deactivate_slab(s, page, cpu); 1402 deactivate_slab(s, page, cpu);
@@ -1405,7 +1406,7 @@ static void flush_slab(struct kmem_cache *s, struct page *page, int cpu)
1405 * Flush cpu slab. 1406 * Flush cpu slab.
1406 * Called from IPI handler with interrupts disabled. 1407 * Called from IPI handler with interrupts disabled.
1407 */ 1408 */
1408static void __flush_cpu_slab(struct kmem_cache *s, int cpu) 1409static inline void __flush_cpu_slab(struct kmem_cache *s, int cpu)
1409{ 1410{
1410 struct page *page = s->cpu_slab[cpu]; 1411 struct page *page = s->cpu_slab[cpu];
1411 1412
@@ -2165,7 +2166,7 @@ static int free_list(struct kmem_cache *s, struct kmem_cache_node *n,
2165/* 2166/*
2166 * Release all resources used by a slab cache. 2167 * Release all resources used by a slab cache.
2167 */ 2168 */
2168static int kmem_cache_close(struct kmem_cache *s) 2169static inline int kmem_cache_close(struct kmem_cache *s)
2169{ 2170{
2170 int node; 2171 int node;
2171 2172