]> Git Repo - linux.git/commit - mm/slab_common.c
mm/slab: document kfree() as allowed for kmem_cache_alloc() objects
authorVlastimil Babka <[email protected]>
Thu, 2 Mar 2023 15:01:00 +0000 (16:01 +0100)
committerVlastimil Babka <[email protected]>
Wed, 29 Mar 2023 08:35:41 +0000 (10:35 +0200)
commitae65a5211d90e54ae604012ce9cf234c48780929
tree426cc35415d01738cf68cbe05f2a587a7713859d
parent6630e950d532ffabce3a4bdbac7be844bad193fe
mm/slab: document kfree() as allowed for kmem_cache_alloc() objects

This will make it easier to free objects in situations when they can
come from either kmalloc() or kmem_cache_alloc(), and also allow
kfree_rcu() for freeing objects from kmem_cache_alloc().

For the SLAB and SLUB allocators this was always possible so with SLOB
gone, we can document it as supported.

Signed-off-by: Vlastimil Babka <[email protected]>
Reviewed-by: Mike Rapoport (IBM) <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Neeraj Upadhyay <[email protected]>
Cc: Josh Triplett <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Lai Jiangshan <[email protected]>
Cc: Joel Fernandes <[email protected]>
Documentation/core-api/memory-allocation.rst
include/linux/rcupdate.h
mm/slab_common.c
This page took 0.067033 seconds and 4 git commands to generate.