Christoph Lameter
686d550d22
mm/slab_common: Improve error handling in kmem_cache_create
...
Instead of using s == NULL use an errorcode. This allows much more
detailed diagnostics as to what went wrong. As we add more functionality
from the slab allocators to the common kmem_cache_create() function we will
also add more error conditions.
Print the error code during the panic as well as in a warning if the module
can handle failure. The API for kmem_cache_create() currently does not allow
the returning of an error code. Return NULL but log the cause of the problem
in the syslog.
Reviewed-by: Glauber Costa <glommer@parallels.com >
Acked-by: David Rientjes <rientjes@google.com >
Signed-off-by: Christoph Lameter <cl@linux.com >
Signed-off-by: Pekka Enberg <penberg@kernel.org >
2012-09-05 12:00:35 +03:00
..
2012-07-31 18:42:40 -07:00
2012-07-17 16:21:29 -07:00
2012-07-18 16:40:35 -04:00
2012-05-29 23:28:33 -04:00
2012-07-31 18:42:43 -07:00
2011-12-06 09:24:07 +01:00
2011-10-31 09:20:12 -04:00
2012-07-31 18:42:42 -07:00
2012-01-03 22:54:56 -05:00
2012-07-31 09:45:47 +04:00
2012-07-31 09:45:47 +04:00
2011-10-31 09:20:11 -04:00
2012-07-23 11:16:20 -04:00
2012-07-31 18:42:47 -07:00
2012-05-29 16:22:28 -07:00
2012-07-31 18:42:41 -07:00
2012-07-31 18:42:50 -07:00
2012-07-31 18:42:43 -07:00
2011-07-26 16:49:47 -07:00
2012-07-31 18:42:46 -07:00
2012-07-31 18:42:45 -07:00
2012-01-10 16:30:42 -08:00
2010-03-30 22:02:32 +09:00
2011-01-27 18:31:51 +00:00
2012-01-20 16:57:05 +00:00
2012-03-21 17:54:59 -07:00
2011-10-31 09:20:12 -04:00
2012-07-06 10:34:38 -07:00
2012-07-31 18:42:45 -07:00
2012-07-31 18:42:41 -07:00
2012-07-31 18:42:49 -07:00
2012-07-31 18:42:44 -07:00
2012-07-31 18:42:43 -07:00
2012-08-01 10:26:23 -07:00
2012-07-30 11:32:24 -07:00
2012-06-25 11:53:47 +02:00
2012-07-31 18:42:48 -07:00
2012-03-21 17:54:54 -07:00
2012-03-06 18:23:36 -08:00
2011-10-31 09:20:12 -04:00
2012-07-31 19:25:39 -07:00
2012-03-21 17:54:59 -07:00
2012-07-31 18:42:49 -07:00
2012-07-31 18:42:43 -07:00
2012-03-22 09:04:48 -07:00
2012-07-31 18:42:39 -07:00
2010-05-21 18:31:21 -04:00
2012-07-11 16:04:50 -07:00
2012-06-04 17:17:31 -04:00
2012-07-31 18:42:45 -07:00
2012-08-02 10:37:03 -07:00
2012-07-31 18:42:43 -07:00
2012-07-31 18:42:47 -07:00
2012-07-31 18:42:45 -07:00
2012-06-09 19:54:47 +08:00
2012-06-20 14:39:36 -07:00
2010-10-02 10:28:42 +03:00
2012-06-20 14:39:36 -07:00
2012-05-09 10:13:29 -07:00
2012-05-25 12:48:21 -04:00
2011-05-20 12:50:29 -07:00
2012-05-31 17:49:32 -07:00
2011-10-31 09:20:11 -04:00
2012-05-29 16:22:23 -07:00
2012-05-29 16:22:19 -07:00
2012-07-31 18:42:50 -07:00
2012-09-05 12:00:35 +03:00
2012-08-17 15:35:44 +03:00
2012-07-09 12:13:41 +03:00
2012-07-12 10:13:22 +03:00
2012-09-05 12:00:35 +03:00
2011-10-31 09:20:11 -04:00
2012-07-31 18:42:49 -07:00
2012-07-31 18:42:47 -07:00
2012-07-31 18:42:47 -07:00
2012-07-31 18:42:48 -07:00
2012-05-29 16:22:23 -07:00
2012-09-04 10:22:58 +03:00
2012-07-31 18:42:39 -07:00
2012-07-31 18:42:49 -07:00
2012-07-31 18:42:46 -07:00