• Vlastimil Babka's avatar
    mm/slab: document kfree() as allowed for kmem_cache_alloc() objects · ae65a521
    Vlastimil Babka authored
    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: default avatarVlastimil Babka <vbabka@suse.cz>
    Reviewed-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: "Paul E. McKenney" <paulmck@kernel.org>
    Cc: Frederic Weisbecker <frederic@kernel.org>
    Cc: Neeraj Upadhyay <quic_neeraju@quicinc.com>
    Cc: Josh Triplett <josh@joshtriplett.org>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Cc: Lai Jiangshan <jiangshanlai@gmail.com>
    Cc: Joel Fernandes <joel@joelfernandes.org>
    ae65a521
memory-allocation.rst 8.85 KB