summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorKyle Moffett <mrmacman_g4@mac.com>2005-09-04 00:55:03 +0200
committerLinus Torvalds <torvalds@evo.osdl.org>2005-09-05 09:05:48 +0200
commitfa5b08d5f818063d18433194f20359ef2ae50254 (patch)
treef2b2bc88347a618f0c4b535d57d2a5271a5eb98e /mm/slab.c
parent[PATCH] remove hugetlb_clean_stale_pgtable() and fix huge_pte_alloc() (diff)
downloadlinux-fa5b08d5f818063d18433194f20359ef2ae50254.tar.xz
linux-fa5b08d5f818063d18433194f20359ef2ae50254.zip
[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 ae6cca04de4b..59d382fbca1c 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)