Re: Common [14/16] Move kmem_cache allocations into common code.

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

 



On 08/02/2012 01:11 AM, Christoph Lameter wrote:
>  
>  	if (setup_cpu_cache(cachep, gfp)) {
>  		__kmem_cache_shutdown(cachep);
> -		return NULL;
> +		return -ENOSPC;
>  	}

Are we reading anything from disk here ?
Besides that, setup_cpu_cache() itself returns an error. It would be a
lot better to just use it, instead of replacing it with our own
interpretation of it.

--
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]