From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Thu, 3 Jul 2014 19:14:25 +0100 Subject: [PATCHv4 2/5] lib/genalloc.c: Add genpool range check function In-Reply-To: <1404324218-4743-3-git-send-email-lauraa@codeaurora.org> References: <1404324218-4743-1-git-send-email-lauraa@codeaurora.org> <1404324218-4743-3-git-send-email-lauraa@codeaurora.org> Message-ID: <20140703181425.GK17372@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Jul 02, 2014 at 07:03:35PM +0100, Laura Abbott wrote: > > After allocating an address from a particular genpool, > there is no good way to verify if that address actually > belongs to a genpool. Introduce addr_in_gen_pool which > will return if an address plus size falls completely > within the genpool range. > > Signed-off-by: Laura Abbott > --- Acked-by: Will Deacon Will From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com [209.85.216.46]) by kanga.kvack.org (Postfix) with ESMTP id 7A6696B0037 for ; Thu, 3 Jul 2014 14:14:24 -0400 (EDT) Received: by mail-qa0-f46.google.com with SMTP id i13so495687qae.5 for ; Thu, 03 Jul 2014 11:14:24 -0700 (PDT) Received: from cam-admin0.cambridge.arm.com (cam-admin0.cambridge.arm.com. [217.140.96.50]) by mx.google.com with ESMTP id do2si38020676qcb.21.2014.07.03.11.14.22 for ; Thu, 03 Jul 2014 11:14:23 -0700 (PDT) Date: Thu, 3 Jul 2014 19:14:25 +0100 From: Will Deacon Subject: Re: [PATCHv4 2/5] lib/genalloc.c: Add genpool range check function Message-ID: <20140703181425.GK17372@arm.com> References: <1404324218-4743-1-git-send-email-lauraa@codeaurora.org> <1404324218-4743-3-git-send-email-lauraa@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1404324218-4743-3-git-send-email-lauraa@codeaurora.org> Sender: owner-linux-mm@kvack.org List-ID: To: Laura Abbott Cc: Catalin Marinas , David Riley , "linux-arm-kernel@lists.infradead.org" , Ritesh Harjain , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" On Wed, Jul 02, 2014 at 07:03:35PM +0100, Laura Abbott wrote: > > After allocating an address from a particular genpool, > there is no good way to verify if that address actually > belongs to a genpool. Introduce addr_in_gen_pool which > will return if an address plus size falls completely > within the genpool range. > > Signed-off-by: Laura Abbott > --- Acked-by: Will Deacon Will -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759558AbaGCSOv (ORCPT ); Thu, 3 Jul 2014 14:14:51 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:60344 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758970AbaGCSOt (ORCPT ); Thu, 3 Jul 2014 14:14:49 -0400 Date: Thu, 3 Jul 2014 19:14:25 +0100 From: Will Deacon To: Laura Abbott Cc: Catalin Marinas , David Riley , "linux-arm-kernel@lists.infradead.org" , Ritesh Harjain , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCHv4 2/5] lib/genalloc.c: Add genpool range check function Message-ID: <20140703181425.GK17372@arm.com> References: <1404324218-4743-1-git-send-email-lauraa@codeaurora.org> <1404324218-4743-3-git-send-email-lauraa@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1404324218-4743-3-git-send-email-lauraa@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 02, 2014 at 07:03:35PM +0100, Laura Abbott wrote: > > After allocating an address from a particular genpool, > there is no good way to verify if that address actually > belongs to a genpool. Introduce addr_in_gen_pool which > will return if an address plus size falls completely > within the genpool range. > > Signed-off-by: Laura Abbott > --- Acked-by: Will Deacon Will