Re: [PATCH v3] slab: Ignore internal flags in cache creation

From: Christoph Lameter
Date: Tue Oct 02 2012 - 14:11:42 EST


On Tue, 2 Oct 2012, Glauber Costa wrote:

> #include <linux/kmemleak.h>
>
> +#define SLAB_AVAILABLE_FLAGS 0xFFFFFFFFUL /* No flag restriction */
> +
> enum stat_item {

I thought the SLAB_AVAILABLE_FLAGS would stand for something meaningful
like the flags supported by an allocator given a kernel config. F.e. SLUB
does not support the debug flags if not compiled with debug.

This looks like it could become material that would fit in mm/slab.h.
There are sets of flags that all allocators have to support (RCU, DMA etc)
and others (like the debug flags) that are optional.

Slob also supports some flags but never any of the debug flags.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/