mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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. [[email protected]: rename init_id_cache() to idr_init_cache()] [[email protected]: fix alpha build] Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>