From patchwork Mon Mar 4 10:33:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 10837571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EB2721390 for ; Mon, 4 Mar 2019 10:33:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D586220CCF for ; Mon, 4 Mar 2019 10:33:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C577322A65; Mon, 4 Mar 2019 10:33:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9700629CD5 for ; Mon, 4 Mar 2019 10:33:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8CA3E8E0003; Mon, 4 Mar 2019 05:33:55 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 87A658E0001; Mon, 4 Mar 2019 05:33:55 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7427B8E0003; Mon, 4 Mar 2019 05:33:55 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id 1DF1B8E0001 for ; Mon, 4 Mar 2019 05:33:55 -0500 (EST) Received: by mail-ed1-f69.google.com with SMTP id o27so2437763edc.14 for ; Mon, 04 Mar 2019 02:33:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:thread-topic :thread-index:date:message-id:accept-language:content-language :content-transfer-encoding:mime-version; bh=TfgBUub3BOrRwpuQIdMIePIxdp+Bf6bCLGsM+Wqmi5Y=; b=iuLuTtpfq0g13TDxuS9RwrQLeasMCwu+fAL/oJokP+O+OmUiZlchmt6MOvGkJo07u2 weagzcXpxeHG5dtBuooQss+vchQkCzORE0foAGySG+O96KhHRDw8Hy8o/C8KH9fZgdgH yjGQAaiOQGYchC0stXTrZOwrvy2pYkWzJ1dAYzSFswGL9arQ1nRkHZe+v4evbGmXMMhV G1QieEXsvAFOIBnwr2FXizDoPmWhiCsnJ/YzVKHUtJC7wXmFhjRQ4SwgT2Qq+xsexgPs DyKuSTQjFtt45y9dtbC58LnPrW9RhACPTOhGsJqzrxlPUqsZhdRROV1qlGBmyBJ3JlCW eL1g== X-Gm-Message-State: APjAAAVLt8XpeXn7REG2PBAJX36MfZNEgJFuBCJ9JOaQqm5RAkFJRzHW mLAMu6VfUSsY4E4U2u+tFrKxLQ9gqT+VKY4UhkWJAciW54GHaOpCqVNtlgsSVevg8sKFaf1fvr8 KD9c3rErBs4eSG+2qNyXjJ5edY1ucsXGTE3kGj6HoLkeFI0V3dJdw/4sEzq6Ng73WQw== X-Received: by 2002:a50:940a:: with SMTP id p10mr14873020eda.54.1551695634622; Mon, 04 Mar 2019 02:33:54 -0800 (PST) X-Google-Smtp-Source: APXvYqx7sNxuo5WMEWlb3TwYs/m0zY6c9c7sQ+QbI693dojAu6P4MrCg9FjbLw1/8u9oXsahIoFT X-Received: by 2002:a50:940a:: with SMTP id p10mr14872976eda.54.1551695633737; Mon, 04 Mar 2019 02:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551695633; cv=none; d=google.com; s=arc-20160816; b=rvgr667SQau7+SnKYnb822XWjGaM733aGLsBB85KlN9wVsWaCd1uhrp8vU/DqZz5Cm MTG/A1slVYDjfOZeu5TnOtGEC+iYODNRnBZ9URNezfZbBpDm2oBFqfAHjjLHjHsDLr24 U6U2BV9psmtEYIPwg4vF23R6xVvVwhrRKtM9c3ISl2u5cP5MbLPHgiEoZBIkpVcpcFGu gUqCo/2b+KNCmn295gCgqW1plj0gdUTc79Iec4kMH3AiyVeBhlZSXyOK6F//gsNVsFy7 tfYg27mAqTn6XjpY+qUu5PeyU9ANgMGZKnZ7LYBmFZKqIzRC8X7MQiCHmElM1O2EUIMn aBOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=TfgBUub3BOrRwpuQIdMIePIxdp+Bf6bCLGsM+Wqmi5Y=; b=0jyocchnP5x1UPwONIUDsVU+WmpqJCOYGBGLy8+Qtsz4dzLsqROuQb/NfF12dUchdl UZeDypyRrhhTgcGgccVpw/Q48gYgAGDVX4fGl0jF0iFe0BGtXQV0iKIgMP8JKbw5MzBg /aSd990oXcnVk1dzbGoLLg57wx01xvGS8NM8x02cRPkZr8G4tpMYofh/dC24JG/Vw9gb bLKyInQgf91l7gEMhe+8GVVvD4IhR6qD26exP1Sk2CtC1YGGdiFrGxGdrYdZAVq+gusS 6UW/xBm60huwvCxsxpQdSNlDS1RcU2Q3EhcVbUmFyua1GmHHvF/rFAb0mhjsP6FEt2tQ 9vCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=DKF5aDuw; spf=pass (google.com: domain of peng.fan@nxp.com designates 40.107.14.41 as permitted sender) smtp.mailfrom=peng.fan@nxp.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140041.outbound.protection.outlook.com. [40.107.14.41]) by mx.google.com with ESMTPS id f1si1747959edd.358.2019.03.04.02.33.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 02:33:53 -0800 (PST) Received-SPF: pass (google.com: domain of peng.fan@nxp.com designates 40.107.14.41 as permitted sender) client-ip=40.107.14.41; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=DKF5aDuw; spf=pass (google.com: domain of peng.fan@nxp.com designates 40.107.14.41 as permitted sender) smtp.mailfrom=peng.fan@nxp.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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=TfgBUub3BOrRwpuQIdMIePIxdp+Bf6bCLGsM+Wqmi5Y=; b=DKF5aDuwhf1NyfOctWGBzjHCA6kQEdotEyRM/56AJfVWQ0PjjV0Ni2bq0xpsHZ+VV5qOaJgZQOFkAvlZjohPYNemRrAERKtk66k0nHulOa80SzZTD8MlZYYxu2zYvxkhO+lWPMTj3GeB7ck6G8RYqXLplk0Zux53uU0C0w1dbUk= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5476.eurprd04.prod.outlook.com (20.178.115.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.16; Mon, 4 Mar 2019 10:33:52 +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; Mon, 4 Mar 2019 10:33:52 +0000 From: Peng Fan To: "dennis@kernel.org" , "tj@kernel.org" , "cl@linux.com" CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "van.freenix@gmail.com" , Peng Fan Subject: [PATCH 1/2] perpcu: correct pcpu_find_block_fit comments Thread-Topic: [PATCH 1/2] perpcu: correct pcpu_find_block_fit comments Thread-Index: AQHU0nXCD5AKhUIPbU2zUP7D5ZNbSg== Date: Mon, 4 Mar 2019 10:33:52 +0000 Message-ID: <20190304104541.25745-1-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.16.4 x-clientproxiedby: HK0PR04CA0001.apcprd04.prod.outlook.com (2603:1096:203:36::13) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 591e3ba3-b072-4fab-609c-08d6a08ce527 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:AM0PR04MB5476; x-ms-traffictypediagnostic: AM0PR04MB5476: x-ms-exchange-purlcount: 1 x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BAM0PR04MB5476=3B23=3AxP?= =?iso-8859-1?q?jEGb8K6mmlvvCQcIDHIT47qc75WSDktrE2LxSccfEYatAZtYQEFoaft5OQ0h?= =?iso-8859-1?q?WVT9s/6aQhiKFPom0jHsy2fAlr2LlQpZ7NHp/L2//mXmy7Ws0pjrDVFXfatE?= =?iso-8859-1?q?wEUQfrlxLE+JPMBTQIL1AF7VtQZlz0WYIp8WbZ2kLxUSBJkWHEBIsvybduOC?= =?iso-8859-1?q?CD16YR4OpH/Tbdolq702ylaNL0raJm0A8Jn9SZEPOazhqF7c9a0BjILie0y6?= =?iso-8859-1?q?GOmKgs4guFAaQJhwdC90s34jeYG7idP2BDbye2Hf7WCVHZBDq3VJXq9rhBu7?= =?iso-8859-1?q?h8fpNMw7ZnAXwIIFfxGL7R5QQsvvLXlVwlJhAPxnqWrwHWR3XM8KbvjCW8XO?= =?iso-8859-1?q?9Yw3AZJ61ArSYRDwjwOVdMjjrM1bw0k29HrZryZExRECbaaJ47lz2jamIWzU?= =?iso-8859-1?q?g1HD0m99Tm+LdIQL7mb/gUuYhbO/TQIInheLctcPFXBAbzQEW2rvCeaBB8l5?= =?iso-8859-1?q?wXTQZViyOmpXbeHlXUrCYoaA7DIcqmzTtK7KYjMGRH874SjDklb7y7e6UOTo?= =?iso-8859-1?q?4L0HXIQMWSKbceEWjkB96bQasyOtJVpDBaHwwMIqG76bVuI5YSSAIyfEgjfX?= =?iso-8859-1?q?VBjzNK7JSLLLGoYeeNPnenKKEa1/y+mJCd0J2dA5ZROcehe+qfmmzakvnwkT?= =?iso-8859-1?q?dRJzIovtxhIeVczvOVj7otzCl0P8tRGj0dit5daxbDAHl+S8obsiSiRQLxIV?= =?iso-8859-1?q?hNbMluBm7Biawe4D9Ad2BSRH/bQP/M5RLvcVVO5/Fh/K6vInWGc6yIOLOkg7?= =?iso-8859-1?q?EtqlVjet9GkF6uvbSZtGP2MBUoZQqkDU90+4mrOYRvvmtec/AsiWMFd3VLcQ?= =?iso-8859-1?q?vn/2YnBX1iVYlrW6zYUrVjNnTgKBRGQ/bX2EiKfxOq+P3ZIjuUIReSTqZ2nv?= =?iso-8859-1?q?I0Ko58oWkn2vLSVHRKDmgePvv2JseX6BVi2MZALmY/ji5capyQOT9TGotLbb?= =?iso-8859-1?q?WM6Vx8gAsd3PYfC8xbGjFdH96BVEUcAs4K4Eo62mduDxfnoMTaMalI6FHj7n?= =?iso-8859-1?q?+g0F+SDbGwAe1S+UQ8ap7eIxXQCz53t+pUUqVJ2nOV3niHEM8XPqulbQ1uPY?= =?iso-8859-1?q?GVb1r9G4AhNUaJDwh3ieLrwHCk39GaJzk8WYg3WTJjuOK42gsnjuQMnA9nJF?= =?iso-8859-1?q?ZPBS2hHV6l8mkFVQwOevwOdmu50HxB84W//1RGJGzrJi2VlPrtGphfzdYAHh?= =?iso-8859-1?q?xXYza/RxM6LQU5YqeOvzUUN12VzTg6vbsWWYQ0A7F+1ZiWuL21LAd4yyOptq?= =?iso-8859-1?q?bbfF45aO8pM4MITAGh/zRf07eZxo82RCFTRVYfVg=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09669DB681 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(39860400002)(396003)(136003)(366004)(376002)(189003)(199004)(6512007)(6306002)(102836004)(186003)(2501003)(386003)(6506007)(99286004)(71200400001)(71190400001)(4744005)(476003)(68736007)(36756003)(2906002)(1076003)(486006)(6436002)(5660300002)(6486002)(66066001)(26005)(53936002)(2616005)(14444005)(256004)(44832011)(52116002)(106356001)(478600001)(7736002)(105586002)(25786009)(305945005)(4326008)(86362001)(97736004)(966005)(14454004)(8936002)(2201001)(316002)(50226002)(81166006)(81156014)(54906003)(110136005)(3846002)(6116002)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5476;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: Z6Gcvi6hmTv6Nr04slcinS2sdoCjk/3y/Wvo5xXf52RZrixOZLc1f33UqbfsSrSrM1olFrTha/nz0QH8lHTV3BIyi2KnUH7fJ20+4BhFALLojD4AjwiRERC6ncEmOwpKKYWDUHgULy6kXE9RAsXyz+kyYpzOEqKSz+qqCXJS9uDXhHaVzBIsgaZVJ9MUyWx6G3xaCMM3NAVfZGU5zzJqxm+91eP/KKUXTCvh6IRqoJkDtedDjo9Jos8bqL+bkbI5lYZEAXnDg6AxS29lzo4Be40+1UCRui5tv5zDX/rFK6gQaGktzgGj41aS0Co/v3v0ds0D2RalESz/n0LsPEUyvBbqV/hKVqmONUZk/fXayuQI2Tp8mtlUGFCasjQS4sd3BFXsd6Wdnx1Wywf4GdUVxqc95sKcvvZc0DAHfVT320A= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 591e3ba3-b072-4fab-609c-08d6a08ce527 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2019 10:33:52.4926 (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: AM0PR04MB5476 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000004, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP pcpu_find_block_fit is not find block index, it is to find the bitmap off in a chunk. Signed-off-by: Peng Fan --- V1: Based on https://patchwork.kernel.org/cover/10832459/ applied linux-next mm/percpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/percpu.c b/mm/percpu.c index 7f630d5469e8..5ee90fc34ea3 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -1061,7 +1061,7 @@ static bool pcpu_is_populated(struct pcpu_chunk *chunk, int bit_off, int bits, } /** - * pcpu_find_block_fit - finds the block index to start searching + * pcpu_find_block_fit - finds the offset in chunk bitmap to start searching * @chunk: chunk of interest * @alloc_bits: size of request in allocation units * @align: alignment of area (max PAGE_SIZE bytes) From patchwork Mon Mar 4 10:33:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 10837573 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CFBB913B5 for ; Mon, 4 Mar 2019 10:34:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCF8422A65 for ; Mon, 4 Mar 2019 10:34:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B124028DCE; Mon, 4 Mar 2019 10:34:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4910C22A65 for ; Mon, 4 Mar 2019 10:34:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E71838E0004; Mon, 4 Mar 2019 05:33:58 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E22168E0001; Mon, 4 Mar 2019 05:33:58 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C9D638E0004; Mon, 4 Mar 2019 05:33:58 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id 6F9B18E0001 for ; Mon, 4 Mar 2019 05:33:58 -0500 (EST) Received: by mail-ed1-f69.google.com with SMTP id m25so2436095edd.6 for ; Mon, 04 Mar 2019 02:33:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:thread-topic :thread-index:date:message-id:references:in-reply-to:accept-language :content-language:content-transfer-encoding:mime-version; bh=/KM+MtVV1D34gBxCpxxnyDqGqHRLFY+ZFtpAF++e86o=; b=Yqoq+kk2Dgqj33DlSovvDxlOZqijPzahyxUpGPVC7Q+43oaFuZOTAhuya3otiYdp6h Ck212KvAtUQWZkoizvFqc6R32+lJhTwKQ6YlSiJx077AsmZIconFjp8mo9hiCOUZwQRn ELZ2M3x8uYhUXYCc69tNFmrNYsLfiux5rPrNyVQvien7m8JLLWoNymycGSS/aEqB/1+U eQcXngj9IhJ7doPYkPw15FxIdclxBGRITGI7IWKhuJflHfdJhRtb75WBMUDx8enlMgA4 MOS1ck+WUCetTGyLoI+EWSruTzxpay3YwsVDua1pZd8hcigCgUxyaCDOOd9/6GOMNG6t ucng== X-Gm-Message-State: APjAAAX/V/v2GI3PU9JnvKhoZkpwouhyTXs60fZIO6DfMTDjL5DvdcM0 06QG1k3voKHJMxmaWccSFIPwQZOvGOlR9u1rk9YT9yFdOyTp3+k88M9S+pe6LIhB2zMIywWEKkq z4VaviH7oNvPt2wqV+Q1XnGuXpLA8eMUC992oiWcqy45N/SwDUgc9DglFsslI7PaQ/Q== X-Received: by 2002:a50:d508:: with SMTP id u8mr15077837edi.51.1551695637987; Mon, 04 Mar 2019 02:33:57 -0800 (PST) X-Google-Smtp-Source: APXvYqz0nzE1GJSUxttw+zt4Op4Poe+PRGTHoIU3PHZWPR7TtRFHBsCsnQNfq/Q67vOjgE7V9oh8 X-Received: by 2002:a50:d508:: with SMTP id u8mr15077790edi.51.1551695637195; Mon, 04 Mar 2019 02:33:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551695637; cv=none; d=google.com; s=arc-20160816; b=uhKp7uUgMEtcMlEZUjXmGjhC3vti7K7ED1Lz8udMm0nPzH6mnRe4c83YBmbUeZjvwT m80LN4nl96u9bZGWgfQn4f+VcUvJvwa8teIS4rpWiudDWh/nHutcoWT2fYHTKDFAi9JO r/+WnH7bdYsYzOkBU+IsuFauH5Om3wNMmXNC1NmbNOD2qXYUxBbaLY84atBwqctcXCqn e3U3kCXTE82tmTNeIYD0SrrUor/emYHZLjJlIsAEeOUps33JPsRwAq5VWApfbrTvh4kU uei4eozpwjVrxIhL88Do/9Un/GTkWGtd+S+Vm19d8YQNHhcq86uBFTEBkQP7twg78gEF u/gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=/KM+MtVV1D34gBxCpxxnyDqGqHRLFY+ZFtpAF++e86o=; b=Bas3ZRUBsowmvdD2uEl78kbtYB7Yp6u2krSlLiFVLyaBp56ty3kyjaze3CtjDO9XYi 98TvTE1hKoEbTCV8b8v0WZO0haPESQoIs3B2sEckGk/9cO0XBes7yhsbCaMaWj3s7DFG 4slO+WdtA1vPRTmNTstc/vgwSuM5ZlZDm+ejMne1br2ZlwNA3cUM0F5PRxlNkseR98yp R22K5rfb4FMG+287Xm6ZIrjQc9LN9Ozy53XqRCWvEgU8BZe2ED0XpNZSpa4nZoMGe7fl FsAhXbYSIlXSRaBehZSPWu5prC9Xf9Q5M9TPoVP4VAAv+MIbsZ0VSBhqqLTzJaBThy2S 2zgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=bLI76z9U; spf=pass (google.com: domain of peng.fan@nxp.com designates 40.107.14.55 as permitted sender) smtp.mailfrom=peng.fan@nxp.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140055.outbound.protection.outlook.com. [40.107.14.55]) by mx.google.com with ESMTPS id t4si2138489eds.319.2019.03.04.02.33.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 02:33:57 -0800 (PST) Received-SPF: pass (google.com: domain of peng.fan@nxp.com designates 40.107.14.55 as permitted sender) client-ip=40.107.14.55; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=bLI76z9U; spf=pass (google.com: domain of peng.fan@nxp.com designates 40.107.14.55 as permitted sender) smtp.mailfrom=peng.fan@nxp.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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=/KM+MtVV1D34gBxCpxxnyDqGqHRLFY+ZFtpAF++e86o=; b=bLI76z9UPh2vjaHHuHksaAd/qx8WM/IFY8xUppsmhf+1Gc5olz1J6N5qbRwQZW9+vzE3PMIUpRcy0T+mNDD6EQ4N5SAamy1fnH+yeG62ZK7gtTyUzLpok8HJo12FaMYR7qD59HOcs9vS8kqVFumyJ7v/2JgyNLRuIc1MXDHiCwg= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5476.eurprd04.prod.outlook.com (20.178.115.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.16; Mon, 4 Mar 2019 10:33:55 +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; Mon, 4 Mar 2019 10:33:55 +0000 From: Peng Fan To: "dennis@kernel.org" , "tj@kernel.org" , "cl@linux.com" CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "van.freenix@gmail.com" , Peng Fan Subject: [PATCH 2/2] percpu: pcpu_next_md_free_region: inclusive check for PCPU_BITMAP_BLOCK_BITS Thread-Topic: [PATCH 2/2] percpu: pcpu_next_md_free_region: inclusive check for PCPU_BITMAP_BLOCK_BITS Thread-Index: AQHU0nXEG16tPwZG4EKC+VpW/1eojw== Date: Mon, 4 Mar 2019 10:33:55 +0000 Message-ID: <20190304104541.25745-2-peng.fan@nxp.com> References: <20190304104541.25745-1-peng.fan@nxp.com> In-Reply-To: <20190304104541.25745-1-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.16.4 x-clientproxiedby: HK0PR04CA0001.apcprd04.prod.outlook.com (2603:1096:203:36::13) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 80740493-6a98-45d2-529b-08d6a08ce722 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:AM0PR04MB5476; x-ms-traffictypediagnostic: AM0PR04MB5476: x-ms-exchange-purlcount: 1 x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BAM0PR04MB5476=3B23=3AdR?= =?iso-8859-1?q?avUPOn/ZJMu8g2wvXPXFLkkCdOvT6B+YIPDapIbD+GY1fZsrSGSSOjtpcEay?= =?iso-8859-1?q?F9J46LiO9PKJzwlu23kzknBzDL0w0jcQ0M+I5pRlIb892VZtc9o51yAjIPfm?= =?iso-8859-1?q?IBxRJA0uPJL7LmSxmKGM02yMYff3kYZXYxGaugjjPmQmrlnvD6aZQjzM0R+a?= =?iso-8859-1?q?U8vhU6xD5CbmMO7HNWJ1Fh9PhZvxHUpB9nu5DxQdd0wxJSbwNInnXnaION4h?= =?iso-8859-1?q?vphMrd5Y1tDzlQq28uD5au7LRyAl7pPjn0Hp36qqQj6q5kyvKK0DswpInBPC?= =?iso-8859-1?q?WrvVbiwG4FXOcA8z8NNExK0E7MJlIeV90cjzKYSjcMyrqJ7lM7x79mkMToUj?= =?iso-8859-1?q?4AmiTKWyU3cjet+Sd36HuVii7+ulKjBd2DX0EjOZ1oBUDMVU8oY3ABZqbUpt?= =?iso-8859-1?q?J6Zg2q+ZfIE+IJBLaIEWCSkC0GhSBAbEmK3KEcWMBupb7lHs6sVw/1AhHvO/?= =?iso-8859-1?q?ZofJuAcZeXV3RqhA4ThzvDqgyUOc38rnWTysk/29iWwtMA32DK2zm0wySDcV?= =?iso-8859-1?q?/lPTOsN43e04VE3zMOvTPo1qAzRQI9XQsdDZ3aGj5rChXHyj0oZ7Ns4FB5TP?= =?iso-8859-1?q?hpL1WHrreLNJYIdItXf65cKxbRJpSxrEPuQTN/V3ww2+8XIx+bcX6owivrNl?= =?iso-8859-1?q?dgdCJFDrmodI+EaydaWYrLUBLDouNMpGyr2r29a901TZxrqfAK1cZQakdbdb?= =?iso-8859-1?q?MpmuAosRRbYk/o6X6d2oEPVY8xrlQ5Ao975VN1VAunZT8j6tZvnew9N78VUG?= =?iso-8859-1?q?FcEz6P/cKxdiej27The5w7JvU5JU+bBX8y+ftt/Xxa8ytr5DaUdFGfi7kABy?= =?iso-8859-1?q?IzzdUCa+xtWC/xou63cIAkfEjyyVknXAjS+wQC872x5LS37+PRgNxWw05/18?= =?iso-8859-1?q?asUCC8c3spQX+0fudHFoaehx5HE2j4JbinvHmA6tcdCAU8rCo9HCz8qO96qD?= =?iso-8859-1?q?5vSnWYQkazyLBxCzyYgI3WoNMJ8oc3SqUhmC5G5onbl1QVvgI/t/7NJbKFPK?= =?iso-8859-1?q?TB2wD1qChhzsiFhE7Iitn0+EyS0UKircEEAuDGcg6FVqorLBaKIyL43rTHSa?= =?iso-8859-1?q?yaCALe4mmXccqyYE1KFT0QOqJktUu3n3Fzc7KITqG/u3uy2ihwdep1fgzPwf?= =?iso-8859-1?q?naYW4b4N3h58AR1Q17xBDsNBXYieYj2MqGIKNJEC8WNMOG6hqVtZTxc+k04x?= =?iso-8859-1?q?D9JARRbE+T/VxK/9ABkdUYOTETentYS7zaRgKe9YPsl1zkxbx47WcxpHprg1?= =?iso-8859-1?q?uvRDG6fABGszW0duLXMwCMOIQc3f6BEuwxp3E4TUHY4PwA3xFuKrXkRoODZD?= =?iso-8859-1?q?K/76oAyxHn1BCaxSV/8ehP?= x-microsoft-antispam-prvs: x-forefront-prvs: 09669DB681 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(39860400002)(396003)(136003)(366004)(376002)(189003)(199004)(446003)(6512007)(6306002)(102836004)(186003)(2501003)(386003)(76176011)(6506007)(99286004)(71200400001)(71190400001)(4744005)(476003)(68736007)(36756003)(2906002)(1076003)(486006)(6436002)(5660300002)(11346002)(6486002)(66066001)(26005)(53936002)(2616005)(14444005)(256004)(44832011)(52116002)(106356001)(478600001)(7736002)(105586002)(25786009)(305945005)(4326008)(86362001)(97736004)(966005)(14454004)(8936002)(2201001)(316002)(50226002)(81166006)(81156014)(54906003)(110136005)(3846002)(6116002)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5476;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: UfX2wIOmZPbHRqkW3BpATValWGvohh7I1J5b0CEz1H3me2AvHlQPeMzfwmuIkJxXUQs0iosnyLLtvcy0SNEV0i/nKJGHSPIhOLOMalPf7+Bb1DMNIF2p3UL4W/1Z1yXn97u4rSdhg5suEoAAvySNmiofvJTe8YxmUQRSjdGlGg5sUfgveHD+q188cdkpWK+yQf0YoeZLWgh+JMs71W0oMDvc/7t6xOD4OndObxuNZp6IjQwlZGV8ONNR3pgYpdeh7AqChvMXjvptM8tGIUKr4KJD+UodiqlU/CI9tkjDN4KpvznWEyphvTHjPTjabgqBw1rNSdzvbaSz5Jw5MfJLk93qUpB4Hdk9mnDhXFBFmIK/6bI3BlCL7Rjsn7bMp1Y7/yngq2IZQRfLBASMkfo8yON5iJkHpuWETS9ko3Ic1iQ= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80740493-6a98-45d2-529b-08d6a08ce722 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2019 10:33:55.7829 (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: AM0PR04MB5476 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP If the block [contig_hint_start, contig_hint_start + contig_hint) matches block->right_free area, need use "<=", not "<". Signed-off-by: Peng Fan --- V1: Based on https://patchwork.kernel.org/cover/10832459/ applied linux-next boot test on qemu aarch64 mm/percpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/percpu.c b/mm/percpu.c index 5ee90fc34ea3..0f91f1d883c6 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -390,7 +390,8 @@ static void pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, */ *bits = block->contig_hint; if (*bits && block->contig_hint_start >= block_off && - *bits + block->contig_hint_start < PCPU_BITMAP_BLOCK_BITS) { + *bits + block->contig_hint_start <= + PCPU_BITMAP_BLOCK_BITS) { *bit_off = pcpu_block_off_to_off(i, block->contig_hint_start); return;