Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932301AbaLJQ7O (ORCPT ); Wed, 10 Dec 2014 11:59:14 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:59656 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932227AbaLJQ7M (ORCPT ); Wed, 10 Dec 2014 11:59:12 -0500 MIME-Version: 1.0 In-Reply-To: <20141210163033.970247616@linux.com> References: <20141210163017.092096069@linux.com> <20141210163033.970247616@linux.com> Date: Wed, 10 Dec 2014 18:59:11 +0200 X-Google-Sender-Auth: A02SwF4wNIRxGtXPWT-X5wuNEFY Message-ID: Subject: Re: [PATCH 5/7] slub: Use end_token instead of NULL to terminate freelists From: Pekka Enberg To: Christoph Lameter Cc: akpm , Steven Rostedt , LKML , Thomas Gleixner , "linux-mm@kvack.org" , iamjoonsoo@lge.com, Jesper Dangaard Brouer Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 10, 2014 at 6:30 PM, Christoph Lameter wrote: > Ending a list with NULL means that the termination of a list is the same > for all slab pages. The pointers of freelists otherwise always are > pointing to the address space of the page. Make termination of a > list possible by setting the lowest bit in the freelist address > and use the start address of a page if no other address is available > for list termination. > > This will allow us to determine the page struct address from a > freelist pointer in the future. > > Signed-off-by: Christoph Lameter Reviewed-by: Pekka Enberg -- 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/