• Linus Torvalds's avatar
    Merge tag 'slab-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab · bdf56c75
    Linus Torvalds authored
    Pull slab updates from Vlastimil Babka:
     "This time it's mostly refactoring and improving APIs for slab users in
      the kernel, along with some debugging improvements.
    
       - kmem_cache_create() refactoring (Christian Brauner)
    
         Over the years have been growing new parameters to
         kmem_cache_create() where most of them are needed only for a small
         number of caches - most recently the rcu_freeptr_offset parameter.
    
         To avoid adding new parameters to kmem_cache_create() and adjusting
         all its callers, or creating new wrappers such as
         kmem_cache_create_rcu(), we can now pass extra parameters using the
         new struct kmem_cache_args. Not explicitly initialized fields
         default to values interpreted as unused.
    
         kmem_cache_create() is for now a wrapper that works both with the
         new form: kmem_cache_create(name, object_size, args, flags) and the
         legacy form: kmem_cache_create(name, objec...
    bdf56c75
tree.c 186 KB