From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) by kanga.kvack.org (Postfix) with ESMTP id 019FC6B0036 for ; Wed, 10 Sep 2014 12:17:00 -0400 (EDT) Received: by mail-ie0-f177.google.com with SMTP id rd18so3152469iec.8 for ; Wed, 10 Sep 2014 09:17:00 -0700 (PDT) Received: from resqmta-po-10v.sys.comcast.net (resqmta-po-10v.sys.comcast.net. [2001:558:fe16:19:96:114:154:169]) by mx.google.com with ESMTPS id ga7si2281106igd.45.2014.09.10.09.17.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 10 Sep 2014 09:17:00 -0700 (PDT) Date: Wed, 10 Sep 2014 11:16:37 -0500 (CDT) From: Christoph Lameter Subject: Re: [RFC/PATCH v2 04/10] mm: slub: introduce virt_to_obj function. In-Reply-To: <1410359487-31938-5-git-send-email-a.ryabinin@samsung.com> Message-ID: References: <1404905415-9046-1-git-send-email-a.ryabinin@samsung.com> <1410359487-31938-1-git-send-email-a.ryabinin@samsung.com> <1410359487-31938-5-git-send-email-a.ryabinin@samsung.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Andrey Ryabinin Cc: linux-kernel@vger.kernel.org, Dmitry Vyukov , Konstantin Serebryany , Dmitry Chernenkov , Andrey Konovalov , Yuri Gribov , Konstantin Khlebnikov , Sasha Levin , Joonsoo Kim , Andrew Morton , Dave Hansen , Andi Kleen , Vegard Nossum , "H. Peter Anvin" , x86@kernel.org, linux-mm@kvack.org, Pekka Enberg , David Rientjes On Wed, 10 Sep 2014, Andrey Ryabinin wrote: > virt_to_obj takes kmem_cache address, address of slab page, > address x pointing somewhere inside slab object, > and returns address of the begging of object. This function is SLUB specific. Does it really need to be in slab.h? -- 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