Thread (27 messages) 27 messages, 9 authors, 2023-09-25

Re: [PATCH v3 4/5] mm/slab: Add __free() support for kvfree

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2023-08-30 22:43:50
Also in: lkml

On Wed, Aug 30, 2023 at 12:33:36PM -0700, Dan Williams wrote:
Allow for the declaration of variables that trigger kvfree() when they
go out of scope. The check for NULL and call to kvfree() can be elided
by the compiler in most cases, otherwise without the NULL check an
unnecessary call to kvfree() may be emitted. Peter proposed a comment
for this detail [1].

Link: http://lore.kernel.org/r/20230816103102.GF980931@hirez.programming.kicks-ass.net (local) [1]
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Dan Williams <redacted>
---
 include/linux/slab.h |    2 ++
 1 file changed, 2 insertions(+)
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help