Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0993CC05027 for ; Wed, 1 Feb 2023 11:59:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230369AbjBAL7M (ORCPT ); Wed, 1 Feb 2023 06:59:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjBAL7L (ORCPT ); Wed, 1 Feb 2023 06:59:11 -0500 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2047.outbound.protection.outlook.com [40.107.7.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 120DF27D72 for ; Wed, 1 Feb 2023 03:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IkiHgtPKG9XsR/XUGN0ie8FPmzfFckcjMAQ3syTc6WEy9UQIJt3pthbo/2j908oiHEb3PcQHchz5Cc3zubvIhweTzS1S28KPRdyJ8u+VYllCC29QZlF55eqZF9dJk/OjlG0j/TNCGiJMVdvRRxTu4Tb6+HP+LXu10AUrCk9s1N9LIu8rAgwjE5QMOzsE7gMhtEfZbOnhorqz6hhqLvo6REdlZSC11v9FK47Eu7z+E9VU54pCvm1J6sbbsoEjBzUGvem8JPWKDg+Piv/wMnnJwA9qVsPzLE+wIqGnIQNq2QWHtNNwoVj/gy3LFX+MqdlbmKp2h+3PV7nBVGoIqdGtSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vCCFwp+qW7N4AHz2k91eUtbwPqGLhGtLp2bZImW0ZS0=; b=Ms9Zv/qMTcIzJyQHBXViH+QPNfiQr1Q7ObTSuwxi5eVL3EMvgZ5KRzrNl9bKc38vTVQSeMVw1A3BOZ00CwX21y/mTGMKzlf2FDNRgCx/iD9JGOOERO15bZnN/bTZog8bCqPOWySBA6ENNo1gnzZ0l38ct+SfAWsOrZ9lKZkJ4OHl6qtKQlccjbqcXYh2eCl0g+yCEITGzvOQjM7bWOx9UFS/g1v5eLZ58xgXLKIx7LJJ1Kaidq0kmzpKdtOe2BHAqaAdWZgUKI68uNAsKzyqJ6Go3OlxvuPZIQ+KgZSihRSO99bGdHx5f6ctpyuGnSXnjD26ckA9HXdxWgNsZA0USQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=csgroup.eu; dmarc=pass action=none header.from=csgroup.eu; dkim=pass header.d=csgroup.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=csgroup.eu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vCCFwp+qW7N4AHz2k91eUtbwPqGLhGtLp2bZImW0ZS0=; b=nQWyPjap8lPdgkyrk/CENdgu7tm0VxTPSVB8PeC/JOiN3BuOMNoOjnx5pCLxwZF5zXpHubhZY1FgYEWyOsYAG4/FZgTdDBfVfbuW4aZxgB824H7a4qljaYkLWRNLpuYfcKe8m9psCMFaFPLdhjW3OE7oLEtJvC8F3ER+pOoV8QpDdnj/6hn0iguehTtN9ScTe/rdIbj3kZZDQwZ+6jix9EAq0huioG6NXcsK38n2E65vL0zOwwfqvlGZPTQ5mQ4GboPI4zUBKR0VtskK5z+3uIj8vNuc3sptbetqb3tq0MxMX1QyPu+kH55E3dNTLTshc5xGsLeDvHQpM30sb5cFsQ== Received: from MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:31::15) by PR0P264MB2041.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:167::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Wed, 1 Feb 2023 11:59:06 +0000 Received: from MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM ([fe80::2cfb:d4c:1932:b097]) by MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM ([fe80::2cfb:d4c:1932:b097%5]) with mapi id 15.20.6064.024; Wed, 1 Feb 2023 11:59:06 +0000 From: Christophe Leroy To: Hyunmin Lee , Andrew Morton , Uladzislau Rezki , Christoph Hellwig CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Gwan-gyeong Mun , Jeungwoo Yoo , Sangyun Kim , Mike Rapoport Subject: Re: [PATCH v4] mm/vmalloc: replace BUG_ON to a simple if statement Thread-Topic: [PATCH v4] mm/vmalloc: replace BUG_ON to a simple if statement Thread-Index: AQHZNjOS2Qd2FeLiuUKIZX/WDiEk8K65/MQA Date: Wed, 1 Feb 2023 11:59:06 +0000 Message-ID: References: <20230201115142.GA7772@min-iamroot> In-Reply-To: <20230201115142.GA7772@min-iamroot> Accept-Language: fr-FR, en-US Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=csgroup.eu; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MRZP264MB2988:EE_|PR0P264MB2041:EE_ x-ms-office365-filtering-correlation-id: 923d94de-d51d-4432-a171-08db044bb878 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2D9GJKW9gP4aYq0OBm+JmwauDREJmkV9ZtnMjzEKvjEsJfYPTTiBQIj3p4wdcHfU9TSaObqFr3vEgjT21Ak27ljMi8aiy18FkBfFjZBOEfjEiJD5wQXaqzBgI3qpqm1u1gCvPdThUDdUjnSemFBh7KGRvmL90cZP1yAQLRyOX8jUf+BARl6ExQjiQ8DwSMaeTqFa7JugVoLYVv4JZqqhMI2hurIHkktzCjPB6T3qDSkcd1R7EjrQvfjoxi43RbW5widrB5WE3oBNkDepfQjibZvyi5Z1s/MP8y2BuQAqwnjFOt+pn71zEcuOCPaVRBEtziEMiBD8CRE+vEgSEJxgSj7SuzC3rtNisDFk7sxvKFgY8ncEBJOnAa87/4/4v1IA7czgh6goysWq/92qCjNaX7a4uWMItbeby9D+Yp30sPQE0wkDvM16DJTbtT7QqK/6FycjUL3o6MlYR+LNqr35UAjsKnrrnrxPvfmy8U5ewj7abBq/HHbKBoQ1xQyNssTa3EO/3U76cmPdXd6oY7ZH5QEt/KkZyD1J6N8wihmfIRUwruw3IMKlySyF5zYqioSPE1QeBzIDGFoKMr+Xu9JXoAFNDJ2gqsAoe+gBNk/vBL1qs4hc77IZyibk11cO+goZvXwaOEvfXfzXP/LhMR2kNLehyqya3DarvNGRH2tHtRjeFsrHWNnftC+GF9SlE5kKCpeqpDODA9cMayT2lzbPOQuVltaKEaG1LeoYFit0usQQq3KbE9wtNjrWl39PwExhj4qPbLzo95i3G07LPEox8g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230025)(4636009)(136003)(396003)(346002)(39840400004)(366004)(376002)(451199018)(2906002)(36756003)(44832011)(2616005)(110136005)(316002)(83380400001)(54906003)(71200400001)(186003)(26005)(6486002)(6512007)(478600001)(6506007)(66556008)(76116006)(66476007)(91956017)(66946007)(66446008)(64756008)(4326008)(8936002)(5660300002)(38070700005)(86362001)(41300700001)(31696002)(7416002)(8676002)(122000001)(38100700002)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; x-ms-exchange-antisp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=?utf-8?B?bEdkSzJTZVlmQUV5TjVTTEp6RUxyYkUxWXJ4S1lVQlJKWm5pc1dpSnZwbmVu?= =?utf-8?B?TUJHVGVLOGpMYTlHSklzQktpQ2I5YlJSS1lwWnBBSE9KNExFeGM5TGcxL0J0?= =?utf-8?B?V0NobUY3VnY4M0JHa0RPQi9rTTByb1Q3YUVHcmhQQVY0dm5laW04OUZDMm9a?= =?utf-8?B?MUc5OFVLcFZFNG1na1Nmdjdlb2lNNjczLzExYWZqQisvVUdpa0lNby9RR2Y1?= =?utf-8?B?NVZBeEdKeTRER0lETHJ0MFdEdEw4c0tnWlBmSFkzN2hwQzV3eFRMZ0tUYkdZ?= =?utf-8?B?QUFqWUtqQ09UaXdtNkJ3MnhibUNMckphUFptNW0wajRIQ3FnN2lwa1JDdXk0?= =?utf-8?B?a3hxR1VtZi9ORHpXbXRieTdvcWNKdzIxdlcvQmZudktuMlJyc0oza2ZaL0hm?= =?utf-8?B?a0E9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <124DFB5A10CA0D4781FE918BF940F0B0@FRAP264.PROD.OUTLOOK.COM> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: csgroup.eu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 923d94de-d51d-4432-a171-08db044bb878 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2023 11:59:06.6716 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9914def7-b676-4fda-8815-5d49fb3b45c8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xT2p5bixDj+JmFUrnNyJRuHIF/eoohduFb8C35jReN4lsLwGpwA1uKhH6BRO0PRj1AjGA1GWbuTpVM4MzPqaZ9RqqbqaE65fzLnnMwPLNrw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR0P264MB2041 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCkxlIDAxLzAyLzIwMjMgw6AgMTI6NTEsIEh5dW5taW4gTGVlIGEgw6ljcml0wqA6DQo+IEFz IHBlciB0aGUgY29kaW5nIHN0YW5kYXJkcywgaW4gdGhlIGV2ZW50IG9mIGFuIGFibm9ybWFsIGNv bmRpdGlvbiB0aGF0DQo+IHNob3VsZCBub3Qgb2NjdXIgdW5kZXIgbm9ybWFsIGNpcmN1bXN0YW5j ZXMsIHRoZSBrZXJuZWwgc2hvdWxkIGF0dGVtcHQNCj4gcmVjb3ZlcnkgYW5kIHByb2NlZWQgd2l0 aCBleGVjdXRpb24sIHJhdGhlciB0aGFuIGhhbHRpbmcgdGhlIG1hY2hpbmUuDQo+IA0KPiBTcGVj aWZpY2FsbHksIGluIHRoZSBhbGxvY192bWFwX2FyZWEoKSBmdW5jdGlvbiwgdXNlIGEgc2ltcGxl IGlmKCkNCj4gaW5zdGVhZCBvZiB1c2luZyBCVUdfT04oKSBoYWx0aW5nIHRoZSBtYWNoaW5lLg0K PiANCj4gQ28tRGV2ZWxvcGVkLWJ5OiBHd2FuLWd5ZW9uZyBNdW4gPGd3YW4tZ3llb25nLm11bkBp bnRlbC5jb20+DQo+IENvLURldmVsb3BlZC1ieTogSmV1bmd3b28gWW9vIDxjYXNpb253b29AZ21h aWwuY29tPg0KPiBDby1EZXZlbG9wZWQtYnk6IFNhbmd5dW4gS2ltIDxzYW5neXVuLmtpbUBzbnUu YWMua3I+DQo+IFNpZ25lZC1vZmYtYnk6IEh5dW5taW4gTGVlIDxobi5taW4ubGVlQGdtYWlsLmNv bT4NCj4gU2lnbmVkLW9mZi1ieTogR3dhbi1neWVvbmcgTXVuIDxnd2FuLWd5ZW9uZy5tdW5AaW50 ZWwuY29tPg0KPiBTaWduZWQtb2ZmLWJ5OiBKZXVuZ3dvbyBZb28gPGNhc2lvbnd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