Re: Common [08/20] Extract common code for kmem_cache_create()

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

 



On Thu, 14 Jun 2012, Glauber Costa wrote:

> That's how my code reads:
>
> #ifdef CONFIG_DEBUG_VM
> if (!name || in_interrupt() || size < sizeof(void *) ||
>     size    KMALLOC_MAX_SIZE) {
>
>     if ((flags & SLAB_PANIC))
>         panic("kmem_cache_create(%s) integrity check failed\n", name);
>     printk(KERN_ERR "kmem_cache_create(%s) integrity check failed\n",
>            name);
>     return NULL;
> }
> #endif
>
> How can it put any patch later than this in trouble ?

Well this is duplicating the exit handling which I would like to avoid.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  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]