From: Kenn H. <ke...@us...> - 2001-02-21 00:28:08
|
Update of /cvsroot/linux-vax/kernel-2.4/mm In directory usw-pr-cvs1:/tmp/cvs-serv23226 Modified Files: slab.c Log Message: Remove stuff for 512-byte page support Index: slab.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/mm/slab.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- slab.c 2001/01/29 01:02:30 1.2 +++ slab.c 2001/02/21 00:29:05 1.3 @@ -293,11 +293,7 @@ #endif /* maximum size of an obj (in 2^order pages) */ -#if PAGE_SIZE == 512 /* temporary for VAX */ -#define MAX_OBJ_ORDER 8 /* 256 pages */ -#else #define MAX_OBJ_ORDER 5 /* 32 pages */ -#endif /* * Do not go above this order unless 0 objects fit into the slab. @@ -309,12 +305,9 @@ /* * Absolute limit for the gfp order */ -#if PAGE_SIZE == 512 /* temporary for VAX */ -#define MAX_GFP_ORDER 8 /* 256 pages */ -#else #define MAX_GFP_ORDER 5 /* 32 pages */ -#endif + /* Macros for storing/retrieving the cachep and or slab from the * global 'mem_map'. These are used to find the slab an obj belongs to. * With kfree(), these are used to find the cache which an obj belongs to. @@ -332,9 +325,6 @@ } cache_sizes_t; static cache_sizes_t cache_sizes[] = { -#if PAGE_SIZE == 4096 || PAGE_SIZE == 512 /* temporarly for VAX */ - { 32, NULL, NULL}, -#endif { 64, NULL, NULL}, { 128, NULL, NULL}, { 256, NULL, NULL}, @@ -1539,15 +1529,6 @@ void * kmalloc (size_t size, int flags) { cache_sizes_t *csizep = cache_sizes; - - /* With the VAX's 512-byte pages, kmalloc doesn't work for - sizes between 33 and 128 bytes (inclusive). I don't know - why, ( and I'm not really interested in fixing it, since - we'll be moving to a 4K page soon), so this just fudges - around the issue */ - if ((size >= 33) && (size <= 128)) { - size = 129; - } for (; csizep->cs_size; csizep++) { if (size > csizep->cs_size) |