Re: [PATCH 01/10] slub: cleanup code for kmem cgroup support to kmem_cache_free_bulk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 7 Jan 2016 09:54:24 -0600 (CST)
Christoph Lameter <cl@xxxxxxxxx> wrote:

> On Thu, 7 Jan 2016, Jesper Dangaard Brouer wrote:
> 
> > +	/* Support for memcg, compiler can optimize this out */
> > +	*s = cache_from_obj(*s, object);
> > +
> 
> Well the indirection on *s presumably cannot be optimized out. And the
> indirection is not needed when cgroups are not active.

The indirection is optimized out, because build_detached_freelist is
inlined (and I marked it so for readability (even-though it was getting
inlined before by GCC)).

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  Author of http://www.iptv-analyzer.org
  LinkedIn: http://www.linkedin.com/in/brouer

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]