From: Akinobu Mita Date: Tue, 29 Apr 2008 08:03:13 +0000 (-0700) Subject: idr: create idr_layer_cache at boot time X-Git-Tag: v2.6.26-rc1~424 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=199f0ca514f9c17668eec4f935c4ba24cd789f85;p=pandora-kernel.git idr: create idr_layer_cache at boot time Avoid a possible kmem_cache_create() failure by creating idr_layer_cache unconditionary at boot time rather than creating it on-demand when idr_init() is called the first time. This change also enables us to eliminate the check every time idr_init() is called. [akpm@linux-foundation.org: rename init_id_cache() to idr_init_cache()] [akpm@linux-foundation.org: fix alpha build] Signed-off-by: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed