Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932068AbbG1Fcr (ORCPT ); Tue, 28 Jul 2015 01:32:47 -0400 Received: from mail-by2on0119.outbound.protection.outlook.com ([207.46.100.119]:44379 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751570AbbG1Fcq (ORCPT ); Tue, 28 Jul 2015 01:32:46 -0400 From: Zhao Qiang To: Scott Wood CC: "lauraa@codeaurora.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "akpm@linux-foundation.org" , "olof@lixom.net" , "catalin.marinas@arm.com" , "Xiaobo Xie" Subject: RE: [RFC v2] genalloc:add an gen_pool_first_fit_align algo to genalloc Thread-Topic: [RFC v2] genalloc:add an gen_pool_first_fit_align algo to genalloc Thread-Index: AQHQyFNqKDU++m1mhE24tbaXfT93WZ3v04mAgABYS3A= Date: Tue, 28 Jul 2015 05:32:42 +0000 Message-ID: References: <1437991074-35377-1-git-send-email-qiang.zhao@freescale.com> <1438032043.2993.311.camel@freescale.com> In-Reply-To: <1438032043.2993.311.camel@freescale.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freescale.com; dkim=none (message not signed) header.d=none; x-originating-ip: [192.158.241.86] x-microsoft-exchange-diagnostics: 1;BY2PR0301MB0775;5:9U+84q6Hgl2INQx8KQmTDYTU83srjHT098TTP9TabcCgfiijCMPZWGkAgSeffP+ASq4ZdlxDSc7JK3pmrGH+iuEpzh8S5/X/mjrPjC5gQ7z8Sk9CXhyh78i5sfrRsiwgZOAtNM9NRbjohxjtxgP4bw==;24:loLym5wUhUF5TkMJb67NnXm+/6KlNtT7Mlt4nNhOdh0Zo5gZoACvkQzoAscAJG1iI+NjztKaiqdCRPZvVirYtoSk4mcvziKBPU0GSeVVlfw=;20:8M/K3YFYoEJX8Z6AIxvwbHy6Ihssnd0gspbWRyZNPrd3lPnWbl0YHgRtm4pTi1G+PAWH++Alt+myHVaGytiCxw== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0775; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BY2PR0301MB0775;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0775; x-forefront-prvs: 06515DA04B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(377424004)(13464003)(24454002)(5002640100001)(66066001)(5001960100002)(2656002)(4001450100002)(19580395003)(110136002)(107886002)(189998001)(74316001)(19580405001)(87936001)(33656002)(86362001)(76576001)(76176999)(50986999)(54356999)(5003600100002)(106116001)(77156002)(102836002)(40100003)(2900100001)(99286002)(2950100001)(46102003)(77096005)(62966003)(92566002)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0301MB0775;H:SN1PR0301MB1550.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jul 2015 05:32:42.7061 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0775 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id t6S5WpfO014104 Content-Length: 1304 Lines: 31 On Tue, 2015-07-28 at 5:21, Scott Wood wrote: > -----Original Message----- > From: Wood Scott-B07421 > Sent: Tuesday, July 28, 2015 5:21 AM > To: Zhao Qiang-B45475 > Cc: lauraa@codeaurora.org; linux-kernel@vger.kernel.org; linuxppc- > dev@lists.ozlabs.org; akpm@linux-foundation.org; olof@lixom.net; > catalin.marinas@arm.com; Xie Xiaobo-R63061 > Subject: Re: [RFC v2] genalloc:add an gen_pool_first_fit_align algo to > genalloc > > On Mon, 2015-07-27 at 17:57 +0800, Zhao Qiang wrote: > > Where's the part that adds the ability to pass in data to each allocation > call, as per the previous discussion? You means to use gen_pool_alloc_data()? Previously you said that the format of data is algorithm-specific, So I think it is better to handle data in algorithm function. If you still prefer gen_pool_alloc_data(), I will modify it. But there still are details I want to confirm with you. 1. If use gen_pool_alloc_data(), should I pass data as a parameter? 2. Should I count align_mask in gen_pool_alloc_data(), meanwhile, add a align_mask to data as a member? 3. where to define the data, in genalloc.h or caller layer? > > -Scott ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?