summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorKyle Moffett <mrmacman_g4@mac.com>2005-09-03 15:55:03 -0700
committerLinus Torvalds <torvalds@evo.osdl.org>2005-09-05 00:05:48 -0700
commitfa5b08d5f818063d18433194f20359ef2ae50254 (patch)
treef2b2bc88347a618f0c4b535d57d2a5271a5eb98e /mm/slab.c
parent0e5c9f39f64d8a55c5db37a5ea43e37d3422fd92 (diff)
downloadop-kernel-dev-fa5b08d5f818063d18433194f20359ef2ae50254.zip
op-kernel-dev-fa5b08d5f818063d18433194f20359ef2ae50254.tar.gz
[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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/slab.c b/mm/slab.c
index ae6cca0..59d382f 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -189,6 +189,7 @@
* is less than 512 (PAGE_SIZE<<3), but greater than 256.
*/
+typedef unsigned int kmem_bufctl_t;
#define BUFCTL_END (((kmem_bufctl_t)(~0U))-0)
#define BUFCTL_FREE (((kmem_bufctl_t)(~0U))-1)
#define SLAB_LIMIT (((kmem_bufctl_t)(~0U))-2)
OpenPOWER on IntegriCloud