Re: [PATCH v1] mm/slub: enable debugging memory wasting of kmalloc

From: Christoph Lameter
Date: Fri Jul 01 2022 - 10:39:36 EST


On Fri, 1 Jul 2022, Feng Tang wrote:

> static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,
> - unsigned long addr, struct kmem_cache_cpu *c)
> + unsigned long addr, struct kmem_cache_cpu *c, unsigned int orig_size)
> {

It would be good to avoid expanding the basic slab handling functions for
kmalloc. Can we restrict the mods to the kmalloc related functions?