diff options
-rw-r--r-- | mm/slub.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1098,6 +1098,18 @@ static inline void inc_slabs_node(struct kmem_cache *s, int node, | |||
1098 | int objects) {} | 1098 | int objects) {} |
1099 | static inline void dec_slabs_node(struct kmem_cache *s, int node, | 1099 | static inline void dec_slabs_node(struct kmem_cache *s, int node, |
1100 | int objects) {} | 1100 | int objects) {} |
1101 | |||
1102 | static inline int slab_pre_alloc_hook(struct kmem_cache *s, gfp_t flags) | ||
1103 | { return 0; } | ||
1104 | |||
1105 | static inline void slab_post_alloc_hook(struct kmem_cache *s, gfp_t flags, | ||
1106 | void *object) {} | ||
1107 | |||
1108 | static inline void slab_free_hook(struct kmem_cache *s, void *x) {} | ||
1109 | |||
1110 | static inline void slab_free_hook_irq(struct kmem_cache *s, | ||
1111 | void *object) {} | ||
1112 | |||
1101 | #endif | 1113 | #endif |
1102 | 1114 | ||
1103 | /* | 1115 | /* |