diff options
Diffstat (limited to 'include/linux/slab_def.h')
-rw-r--r-- | include/linux/slab_def.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index 09bfffb08a56..8235dfbb3b05 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h | |||
@@ -1,18 +1,20 @@ | |||
1 | #ifndef _LINUX_SLAB_DEF_H | 1 | #ifndef _LINUX_SLAB_DEF_H |
2 | #define _LINUX_SLAB_DEF_H | 2 | #define _LINUX_SLAB_DEF_H |
3 | 3 | ||
4 | #include <linux/reciprocal_div.h> | ||
5 | |||
4 | /* | 6 | /* |
5 | * Definitions unique to the original Linux SLAB allocator. | 7 | * Definitions unique to the original Linux SLAB allocator. |
6 | */ | 8 | */ |
7 | 9 | ||
8 | struct kmem_cache { | 10 | struct kmem_cache { |
9 | /* 1) Cache tunables. Protected by cache_chain_mutex */ | 11 | /* 1) Cache tunables. Protected by slab_mutex */ |
10 | unsigned int batchcount; | 12 | unsigned int batchcount; |
11 | unsigned int limit; | 13 | unsigned int limit; |
12 | unsigned int shared; | 14 | unsigned int shared; |
13 | 15 | ||
14 | unsigned int size; | 16 | unsigned int size; |
15 | u32 reciprocal_buffer_size; | 17 | struct reciprocal_value reciprocal_buffer_size; |
16 | /* 2) touched by every alloc & free from the backend */ | 18 | /* 2) touched by every alloc & free from the backend */ |
17 | 19 | ||
18 | unsigned int flags; /* constant flags */ | 20 | unsigned int flags; /* constant flags */ |