Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754788Ab3HWGke (ORCPT ); Fri, 23 Aug 2013 02:40:34 -0400 Received: from LGEMRELSE7Q.lge.com ([156.147.1.151]:49662 "EHLO LGEMRELSE7Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754527Ab3HWGkd (ORCPT ); Fri, 23 Aug 2013 02:40:33 -0400 X-AuditID: 9c930197-b7b44ae00000347f-a4-521703dff603 Date: Fri, 23 Aug 2013 15:40:43 +0900 From: Joonsoo Kim To: Christoph Lameter Cc: Pekka Enberg , Andrew Morton , David Rientjes , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/16] slab: change return type of kmem_getpages() to struct page Message-ID: <20130823064043.GE22605@lge.com> References: <1377161065-30552-1-git-send-email-iamjoonsoo.kim@lge.com> <1377161065-30552-3-git-send-email-iamjoonsoo.kim@lge.com> <00000140a725706c-27ed3820-ef32-4388-825a-de582055d91d-000000@email.amazonses.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00000140a725706c-27ed3820-ef32-4388-825a-de582055d91d-000000@email.amazonses.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1596 Lines: 37 On Thu, Aug 22, 2013 at 05:49:43PM +0000, Christoph Lameter wrote: > On Thu, 22 Aug 2013, Joonsoo Kim wrote: > > > @@ -2042,7 +2042,7 @@ static void slab_destroy_debugcheck(struct kmem_cache *cachep, struct slab *slab > > */ > > static void slab_destroy(struct kmem_cache *cachep, struct slab *slabp) > > { > > - void *addr = slabp->s_mem - slabp->colouroff; > > + struct page *page = virt_to_head_page(slabp->s_mem); > > > > slab_destroy_debugcheck(cachep, slabp); > > if (unlikely(cachep->flags & SLAB_DESTROY_BY_RCU)) { > > Ok so this removes slab offset management. The use of a struct page > pointer therefore results in coloring support to be not possible anymore. No, slab offset management is done by colour_off in struct kmem_cache. This colouroff in struct slab is just for getting start address of the page at free time. If we can get start address properly, we can remove it without any side-effect. This patch implement it. Thanks. > > I would suggest to have a separate patch for coloring removal before this > patch. It seems that the support is removed in two different patches now. > > -- > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/