mm, slab/slub: move and improve cache_from_obj()