From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by kanga.kvack.org (Postfix) with ESMTP id 88125828DE for ; Thu, 7 Jan 2016 10:54:27 -0500 (EST) Received: by mail-io0-f178.google.com with SMTP id q21so256180675iod.0 for ; Thu, 07 Jan 2016 07:54:27 -0800 (PST) Received: from resqmta-ch2-05v.sys.comcast.net (resqmta-ch2-05v.sys.comcast.net. [2001:558:fe21:29:69:252:207:37]) by mx.google.com with ESMTPS id m9si22094517ige.60.2016.01.07.07.54.27 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Jan 2016 07:54:27 -0800 (PST) Date: Thu, 7 Jan 2016 09:54:24 -0600 (CST) From: Christoph Lameter Subject: Re: [PATCH 01/10] slub: cleanup code for kmem cgroup support to kmem_cache_free_bulk In-Reply-To: <20160107140338.28907.48580.stgit@firesoul> Message-ID: References: <20160107140253.28907.5469.stgit@firesoul> <20160107140338.28907.48580.stgit@firesoul> Content-Type: text/plain; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Jesper Dangaard Brouer Cc: linux-mm@kvack.org, Vladimir Davydov , Andrew Morton , Linus Torvalds , Joonsoo Kim 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. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org