Re: [PATCH 1/2] slab: fix kmem_cache definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 25 Feb 2010, Dmitry Monakhov wrote:

> SLAB_XXX flags in slab.h has defined as unsigned long.
> This definition is in sync with kmem_cache->flag in slub and slob
> But slab defines kmem_cache->flag as "unsigned int".
> 
> Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>

Added Pekka since this needs to go through him for slab-2.6.git.

> ---
>  include/linux/slab_def.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h
> index ca6b2b3..49bb71f 100644
> --- a/include/linux/slab_def.h
> +++ b/include/linux/slab_def.h
> @@ -34,7 +34,7 @@ struct kmem_cache {
>  	u32 reciprocal_buffer_size;
>  /* 3) touched by every alloc & free from the backend */
>  
> -	unsigned int flags;		/* constant flags */
> +	unsigned long flags;		/* constant flags */
>  	unsigned int num;		/* # of objs per slab */
>  
>  /* 4) cache_grow/shrink */

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]