diff options
author | Kyle Moffett <mrmacman_g4@mac.com> | 2005-09-03 18:55:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:05:48 -0400 |
commit | fa5b08d5f818063d18433194f20359ef2ae50254 (patch) | |
tree | f2b2bc88347a618f0c4b535d57d2a5271a5eb98e /mm/slab.c | |
parent | 0e5c9f39f64d8a55c5db37a5ea43e37d3422fd92 (diff) |
[PATCH] sab: consolidate kmem_bufctl_t
This is used only in slab.c and each architecture gets to define whcih
underlying type is to be used.
Seems a bit silly - move it to slab.c and use the same type for all
architectures: unsigned int.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -189,6 +189,7 @@ | |||
189 | * is less than 512 (PAGE_SIZE<<3), but greater than 256. | 189 | * is less than 512 (PAGE_SIZE<<3), but greater than 256. |
190 | */ | 190 | */ |
191 | 191 | ||
192 | typedef unsigned int kmem_bufctl_t; | ||
192 | #define BUFCTL_END (((kmem_bufctl_t)(~0U))-0) | 193 | #define BUFCTL_END (((kmem_bufctl_t)(~0U))-0) |
193 | #define BUFCTL_FREE (((kmem_bufctl_t)(~0U))-1) | 194 | #define BUFCTL_FREE (((kmem_bufctl_t)(~0U))-1) |
194 | #define SLAB_LIMIT (((kmem_bufctl_t)(~0U))-2) | 195 | #define SLAB_LIMIT (((kmem_bufctl_t)(~0U))-2) |