Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1626144imb; Sun, 3 Mar 2019 00:44:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyyut3thIJ7KeLzSE/wp61PPs9b3P3G2Zt/uXj2IVZeYB6lczWywZPD3JAwxlZegEMqVj7p X-Received: by 2002:a63:6841:: with SMTP id d62mr13207646pgc.133.1551602646852; Sun, 03 Mar 2019 00:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551602646; cv=none; d=google.com; s=arc-20160816; b=NRwYVb4kwwkrhc/pLDM7ADz3SbKUPALribjTfUcFbXuMOe7yCbyEUuXkAeraKZeteN +4empkgHn7j+EuNGcmG52W0uztNRkK7Xk7w0TwbsR4YyvOa+H2ZB4q9TkdU8LPJu6zEP V3LlJUCW5dLb39doxwGmFPK0CDeTVD6KMSTJ6fXsByYQD3xidowKgYgu9kfCv4n/wFFx YVhXhtQw7Frb0XTtm+E7wSeRF2/6x9Zsv4zXL2I6wfgRDQ4C3kdrw/k2t58dv0GMaBVr yGmDJxIqtYA8C4Ln2j62+oHxxgQ3CXymqThWnAT1XAiAOLv3LRWpjtZJVrfOx1/8kdqT JmXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Wf9aSd7bnskM+a+4XkrGfDBFHDG5+prIO7Uw6iCaiHU=; b=uDvwAkoSHgkgOaSzepPo6oG/peN/Mvcl4rz/Uki0TC6+gROWdf1KK2G8C3ql1pb4tm JyWqGy5eAi4qYIHcO/WsdIagImtin9zWJ8mgoyPtLVmySKIQttnMYio09E6BQPrDEKJv pUuCnDhEUNGtyDntcQKdVrgvqBpYVbp9eCUBFDpPZ0adaLLKO72FkUYXs4xYJE+13xFE h2PtQCvpqlajANnhN0JMz4r/H0DsZpSJDIIzm9mLCsT65zOSlcKNFj2SQZFc+5GlCWyJ mthXPlwm+Kay1/ig5uVHEpFqkXweEjx95TJISbShHWCF4GkkZ0lHMmDlS1iAfmdTbjKe mJig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=GMLZNVVu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m61si2616894plb.43.2019.03.03.00.43.51; Sun, 03 Mar 2019 00:44:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=GMLZNVVu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726055AbfCCImd (ORCPT + 99 others); Sun, 3 Mar 2019 03:42:33 -0500 Received: from mail-eopbgr80043.outbound.protection.outlook.com ([40.107.8.43]:35206 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725877AbfCCImd (ORCPT ); Sun, 3 Mar 2019 03:42:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wf9aSd7bnskM+a+4XkrGfDBFHDG5+prIO7Uw6iCaiHU=; b=GMLZNVVuc/9ZuJVisZxVPGs1p87GqXm5po4ejoQ85PEVXSvfafvwFO1spQoDnb4YAGCqGEExlqk5JlUObT4aDw+Jg7T1q48eH1W9OpFQFkmbu1Hq2K0B28ADOhG1JqQWKpLWq7UkIjlAkqdR2KD/0ojvfKPqYlhqBN15c/fCBd4= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5988.eurprd04.prod.outlook.com (20.178.115.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.17; Sun, 3 Mar 2019 08:42:27 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::a51f:134d:b530:f185]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::a51f:134d:b530:f185%5]) with mapi id 15.20.1665.019; Sun, 3 Mar 2019 08:42:27 +0000 From: Peng Fan To: Dennis Zhou CC: Tejun Heo , Christoph Lameter , Vlad Buslov , "kernel-team@fb.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 04/12] percpu: manage chunks based on contig_bits instead of free_bytes Thread-Topic: [PATCH 04/12] percpu: manage chunks based on contig_bits instead of free_bytes Thread-Index: AQHUzwv2qzl7fj3BX0OARXhmoz6omaX4XeFQgACTlICAAKpB4A== Date: Sun, 3 Mar 2019 08:42:27 +0000 Message-ID: References: <20190228021839.55779-1-dennis@kernel.org> <20190228021839.55779-5-dennis@kernel.org> <20190302223211.GC1196@dennisz-mbp.home> In-Reply-To: <20190302223211.GC1196@dennisz-mbp.home> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 828719e9-ab0c-40bc-af7b-08d69fb42a9b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB5988; x-ms-traffictypediagnostic: AM0PR04MB5988: x-microsoft-exchange-diagnostics: =?utf-8?B?MTtBTTBQUjA0TUI1OTg4OzIzOmlzNm5BWHNoNm1XVkoraXRDUmNMdU4yR2RD?= =?utf-8?B?dzlTTFprYXVwcUlEZko0dVVpbWgrblVva2wyelRmQ1d1UmFtRVJQY3hTZUF1?= =?utf-8?B?dzhnaElPMVpXZWo4V09OTWFoK2czTWtHMWlxS0w2M1BSbDZlaklHQVMxbVM5?= =?utf-8?B?QkYveDFaVlIvdEdMTmNmaDY3NjErczJDNCtYMEVSWW55b2V2Yzh0c0l4b0RF?= =?utf-8?B?UEtXOE5FTjBqMXRJQ1pCVkJpd2gxTEk0aUlrQ0FiZG9kQ0lVejVIUE13ejJ3?= =?utf-8?B?Tmt5NTBEM3NWdG9yUGlPTTUyRVNvOE1NRWxkN3YvWjJ2Q29NQ3dNNGRFZE9l?= =?utf-8?B?K3BNZTFHODc3b0JSbUxPdmhvYUh2WGVxRW5CeXZ2M3N5YWljQ2V5Z29IeVdq?= =?utf-8?B?Q08yM2pKNHVHUW5lT0xVYzBKWUJuOEg5ck1SUllaWjNlSEZWKzJyK1FoOVVS?= =?utf-8?B?UWI0cW4vLzBTMTFLZWVpSUFEZVZWdk9mU091V0RwR2h6N0hzZnZLWnZhM2t6?= =?utf-8?B?UUROamtJN2ppa2lzaTBpd0ZhL2M5WThTNnAxRERzekVMc0MyL3RMdldXT3M4?= =?utf-8?B?ZmR6bmFiSkY0bWZqS3RMVlFjdSs4eFdBWEJ6TTRmdXQrUDA0eXFxLy90VWYx?= =?utf-8?B?VjVEVjRkdFBDK1k1aVZKemZUSnRwYXpLdXlhS1dOdUZacDRTUkl2b1JVVTkv?= =?utf-8?B?R1NKUEt2SzRpYlhaUHhmVUVmMFZ4Tk5iNHBmMHJ5b05ldUlsejNJU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VlYW9JNStWQ3JvOGMvQlpmRFpHeFVs?= =?utf-8?B?VXhqS1BtWC9OMnBVcFgzQkJKbGVHRzVUSU9ybjVaOTBBeE9PeU02emFkV3E4?= =?utf-8?Q?hIZ5O5OmwFj82IJZo0jlivuw1tnRQQ+YoxiRQ=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 096507C068 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(136003)(376002)(396003)(346002)(13464003)(189003)(199004)(14454004)(446003)(11346002)(33656002)(68736007)(102836004)(76176011)(53546011)(6506007)(476003)(7696005)(6246003)(486006)(2906002)(7736002)(81156014)(305945005)(74316002)(8676002)(81166006)(8936002)(71200400001)(71190400001)(99286004)(6916009)(44832011)(186003)(26005)(52536013)(478600001)(105586002)(106356001)(66066001)(97736004)(5660300002)(3846002)(9686003)(6116002)(229853002)(6436002)(93886005)(256004)(53936002)(25786009)(14444005)(86362001)(55016002)(4326008)(54906003)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5988;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: seEnRMWCdo+9eJNkGLBHPcMvT46WGxNZs9bFxSDAl6J/oYnNMcU7q89v+A92FUH7m/2aVR7Ls+MoxRli98vmEBU4LJVh7nBwUPLIrcFju5HF6F6CmQtyQ5zu48mpuMNtjBufLMj4t4PUmpmMWw/YGwGmj82FwbEkQBa8W5Hy4piURTdvp6h9RiqcH2Gmx+sjkxk9yyOi2K23HKjshku5ke1rqYXC5hWZSTOraF1m6CyAHRyqbd/+m/Xk4FBHir4m8rnUUrMmfNeG8SZYKeC/sLtIxmZ24jLuMYW5o1adaCdk8qiICcHwrOCjmfRyyI3wHVV3PjeKZZLdDyqR7BhITsYMQ71cxTMIE54yNVBVFyKiysBtVQAWiHJ/hUVhTciymzMNI1UdU4b+CDCA0ew++gMPmnWdAJhPLJNW2pP/Tvw= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 828719e9-ab0c-40bc-af7b-08d69fb42a9b X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2019 08:42:27.5658 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5988 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogRGVubmlzIFpob3UgW21h aWx0bzpkZW5uaXNAa2VybmVsLm9yZ10NCj4gU2VudDogMjAxOeW5tDPmnIgz5pelIDY6MzINCj4g VG86IFBlbmcgRmFuIDxwZW5nLmZhbkBueHAuY29tPg0KPiBDYzogVGVqdW4gSGVvIDx0akBrZXJu ZWwub3JnPjsgQ2hyaXN0b3BoIExhbWV0ZXIgPGNsQGxpbnV4LmNvbT47IFZsYWQNCj4gQnVzbG92 IDx2bGFkYnVAbWVsbGFub3guY29tPjsga2VybmVsLXRlYW1AZmIuY29tOyBsaW51eC1tbUBrdmFj ay5vcmc7DQo+IGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmcNCj4gU3ViamVjdDogUmU6IFtQ QVRDSCAwNC8xMl0gcGVyY3B1OiBtYW5hZ2UgY2h1bmtzIGJhc2VkIG9uIGNvbnRpZ19iaXRzDQo+ IGluc3RlYWQgb2YgZnJlZV9ieXRlcw0KPiANCj4gT24gU2F0LCBNYXIgMDIsIDIwMTkgYXQgMDE6 NDg6MjBQ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