direct-io.hg

changeset 1695:1d4e272147c7

bitkeeper revision 1.1041.1.17 (40eb0b673jnCW3n1yVuLT8OFnMJm-Q)

Minor slab tweaks to move ever so slightly toward 2.6 and make ia64
(based on 2.6) easier. (NOTE! kmem_bufctl_t is now a short per 2.6!)
author djm@kirby.fc.hp.com
date Tue Jul 06 20:28:23 2004 +0000 (2004-07-06)
parents b89292506038
children b8ad289cb612 1e184263e3af
files xen/common/slab.c xen/include/asm-x86/types.h
line diff
     1.1 --- a/xen/common/slab.c	Tue Jul 06 19:33:41 2004 +0000
     1.2 +++ b/xen/common/slab.c	Tue Jul 06 20:28:23 2004 +0000
     1.3 @@ -117,9 +117,9 @@
     1.4   * is less than 512 (PAGE_SIZE<<3), but greater than 256.
     1.5   */
     1.6  
     1.7 -#define BUFCTL_END 0xffffFFFF
     1.8 -#define	SLAB_LIMIT 0xffffFFFE
     1.9 -typedef unsigned int kmem_bufctl_t;
    1.10 +#define BUFCTL_END	(((kmem_bufctl_t)(~0U))-0)
    1.11 +#define BUFCTL_FREE	(((kmem_bufctl_t)(~0U))-1)
    1.12 +#define	SLAB_LIMIT	(((kmem_bufctl_t)(~0U))-2)
    1.13  
    1.14  /* Max number of objs-per-slab for caches which use off-slab slabs.
    1.15   * Needed to avoid a possible looping condition in kmem_cache_grow().
     2.1 --- a/xen/include/asm-x86/types.h	Tue Jul 06 19:33:41 2004 +0000
     2.2 +++ b/xen/include/asm-x86/types.h	Tue Jul 06 20:28:23 2004 +0000
     2.3 @@ -56,4 +56,6 @@ typedef unsigned long size_t;
     2.4  typedef unsigned long dma_addr_t;
     2.5  typedef u64 dma64_addr_t;
     2.6  
     2.7 +typedef unsigned short kmem_bufctl_t;
     2.8 +
     2.9  #endif