• Hyeonggon Yoo's avatar
    mm/sl[au]b: generalize kmalloc subsystem · b1405135
    Hyeonggon Yoo authored
    Now everything in kmalloc subsystem can be generalized.
    Let's do it!
    
    Generalize __do_kmalloc_node(), __kmalloc_node_track_caller(),
    kfree(), __ksize(), __kmalloc(), __kmalloc_node() and move them
    to slab_common.c.
    
    In the meantime, rename kmalloc_large_node_notrace()
    to __kmalloc_large_node() and make it static as it's now only called in
    slab_common.c.
    
    [ feng.tang@intel.com: adjust kfence skip list to include
      __kmem_cache_free so that kfence kunit tests do not fail ]
    Signed-off-by: default avatarHyeonggon Yoo <42.hyeyoo@gmail.com>
    Reviewed-by: default avatarVlastimil Babka <vbabka@suse.cz>
    Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
    b1405135
slab_common.c 35.6 KB