Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp975811imw; Tue, 5 Jul 2022 01:22:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3Szd/5FOi64Cn4BOqOq5ZVxSlk2n9uwp8yocQJrh36XLyr/EFaEQURBz549v0fzmooFoU X-Received: by 2002:a17:90b:1c8e:b0:1ee:e899:c612 with SMTP id oo14-20020a17090b1c8e00b001eee899c612mr40844110pjb.170.1657009361298; Tue, 05 Jul 2022 01:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657009361; cv=none; d=google.com; s=arc-20160816; b=lvCJdTzF9sZxjAl70dKq2JtRXwWlicxjsFdH2M82ALf0Ctgtv5vrEwNbqKRJaEi8qm RiiFbx9QtCseDCyylC9XgIyPQL21tf+s0EdMpsaGfMCB9lXOO1lGzQhW1Ox+RmgUW8mP xxLpmSLUU8OXUjuejC/+iO/CAEq5gNLUl8zsmXetm2Vw2HapHX0JHHtlefuwQG5X/Yhw VEEgzE1wGsAd3cvSWYI7+B05dzbdgyMNzrM5q0xs4bW/gVNxLBsiLRnSMl+vyM2uJmnS xxMVq648+RtY5FoGzpAD75acQSjOYDKd228MnIqmrZ6fryBUyeartNZmHlirAqS5Mwkr prxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=9Tvetb0aFo8wgWwgBiY3U5j6QSf4pwFaimBTtIrPVb8=; b=XOTUwmOpg9Flhpc2BGlhQqA3Of9/cmlcS+5CrTHIYeiRhJIW1ynVpHkx4NnCTtuVP3 SOe/jfD65HIK0DRT9s4ix+kFDgsA3i4uI2AzGGMgetxA0hGAHbMhv/V1OfrYj12B2FhA FfjDaJ/2DnCRShpD3teApy2ueDdFdp2d572PTyBQkNM51E7rZ5gHsZQ9CW00c0FVQ+h2 xv2lZGbfnhxRjezBkXuzXQM+d9f90FuxTc2ns6T3su68DOoz8qc+8Of28Gw5A2wZg4CV 5nG8kuOSgEVJQylb9ggYIA2/JTCL35lAbmK+/6O6545Sm9e2j5xnLklh28e27JeMkDdC Bvzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a62-20020a639041000000b00412818b6174si324312pge.417.2022.07.05.01.22.25; Tue, 05 Jul 2022 01:22:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230245AbiGEIMw (ORCPT + 99 others); Tue, 5 Jul 2022 04:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230170AbiGEIMv (ORCPT ); Tue, 5 Jul 2022 04:12:51 -0400 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A114713DE9; Tue, 5 Jul 2022 01:12:48 -0700 (PDT) Received: from [192.168.1.103] (31.173.87.24) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Tue, 5 Jul 2022 11:12:38 +0300 Subject: Re: [PATCH] MIPS: mm: Use the bitmap API to allocate bitmaps To: Christophe JAILLET , Thomas Bogendoerfer CC: , , References: <4b6493bfee4f1c2d30193df01e67052922703b95.1656961396.git.christophe.jaillet@wanadoo.fr> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <4f6901f8-2cf3-bd96-d7d2-cdc6af4245f3@omp.ru> Date: Tue, 5 Jul 2022 11:12:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <4b6493bfee4f1c2d30193df01e67052922703b95.1656961396.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [31.173.87.24] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 07/05/2022 07:42:48 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 171552 [Jul 05 2022] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 492 492 b40b958bfe450bd24190c42292f139f738a48226 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.87.24 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;omp.ru:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: ApMailHostAddress: 31.173.87.24 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 07/05/2022 07:46:00 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 7/5/2022 7:09:00 AM X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 7/4/22 10:03 PM, Christophe JAILLET wrote: > Use bitmap_zalloc()/bitmap_free() instead of hand-writing them. You don't use bitmap_free() in this patch... > It is less verbose and it improves the semantic. > > While at it, turn a bitmap_clear() into an equivalent bitmap_zero(). It is > also less verbose. > > Signed-off-by: Christophe JAILLET [...] MBR, Sergey