From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by kanga.kvack.org (Postfix) with ESMTP id DCEE86B0070 for ; Tue, 16 Dec 2014 10:33:17 -0500 (EST) Received: by mail-pa0-f50.google.com with SMTP id bj1so14394415pad.9 for ; Tue, 16 Dec 2014 07:33:17 -0800 (PST) Received: from mail-pd0-x22e.google.com (mail-pd0-x22e.google.com. [2607:f8b0:400e:c02::22e]) by mx.google.com with ESMTPS id bf9si1572466pad.98.2014.12.16.07.33.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 07:33:16 -0800 (PST) Received: by mail-pd0-f174.google.com with SMTP id fp1so14040208pdb.19 for ; Tue, 16 Dec 2014 07:33:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20141210163017.092096069@linux.com> <20141210163033.717707217@linux.com> <20141215080338.GE4898@js1304-P5Q-DELUXE> <20141216024210.GB23270@js1304-P5Q-DELUXE> <20141216082555.GA6088@js1304-P5Q-DELUXE> Date: Tue, 16 Dec 2014 19:33:15 +0400 Message-ID: Subject: Re: [PATCH 3/7] slub: Do not use c->page on free From: Andrey Ryabinin Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Lameter Cc: Joonsoo Kim , akpm@linuxfoundation.org, rostedt@goodmis.org, LKML , Thomas Gleixner , "linux-mm@kvack.org" , Pekka Enberg , Jesper Dangaard Brouer 2014-12-16 17:53 GMT+03:00 Christoph Lameter : > On Tue, 16 Dec 2014, Joonsoo Kim wrote: > >> > Like this: >> > >> > return d > 0 && d < page->objects * s->size; >> > >> >> Yes! That's what I'm looking for. >> Christoph, how about above change? > > Ok but now there is a multiplication in the fast path. > Another idea - store page's order in the lower bits of page->address. -- 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