Messages in this thread | | | Date | Wed, 2 Oct 2013 14:41:29 +0000 | From | Christoph Lameter <> | Subject | Re: [PATCH] slub: Proper kmemleak tracking if CONFIG_SLUB_DEBUG disabled |
| |
On Fri, 27 Sep 2013, Frank Rowand wrote:
> Move the kmemleak code for small block allocation out from > under CONFIG_SLUB_DEBUG.
Well in that case it may be better to move the hooks as a whole out of the CONFIG_SLUB_DEBUG section. Do the #ifdeffering for each call from the hooks instead.
The point of the hook functions is to separate the hooks out of the functions so taht they do not accumulate in the main code.
The patch moves one hook back into the main code. Please keep the checks in the hooks.
| |