Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp95443imk; Sat, 2 Jul 2022 12:52:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tKZp5Vzi1tyPc4CljyDNinKWVhIpMR4hSaxIIWH6YePuileC1FoKwihZD9JKnQpybZ0Xuc X-Received: by 2002:a05:6402:1910:b0:435:ccca:1d8c with SMTP id e16-20020a056402191000b00435ccca1d8cmr27329121edz.211.1656791528283; Sat, 02 Jul 2022 12:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656791528; cv=none; d=google.com; s=arc-20160816; b=FWTpE4jB118Dwgr0BRDBWyExMHjZ70ExMk8EQiqwW8ZE+6fg0DZ7vMf3RM2eMXu0UY 33wnM2QjfqHTg8J5x0FqT4KWFxY5o4sQ9hP9xgYZmyeDu9WI3KHSR879rM7a7zEkue9U Q0+tM+d4PrCN5faaePg4JTOE66cDpp8CoXLwsY3KLQPrvYZ3F+uwWozETH3cmollcTRw bNo32P6Yql8OMdnSIpmRTzGuDiEN0KtfRBM2/1cjAkHdIsoCppyeUneKaX5JI7iwOZgS JzMWwJjbgQH5E+Bc94d3/WR+uZitz7YEc4dDDioTfsLYtcbPtuJVcD8cVZnLRPW4RTOe TwIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:newsgroups:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=menSXdd2Gkli98HDBMKHasfvUJBBPhnEuqXL6+Rrw2s=; b=s6mxyHgLX1OM0QQN8cVMNLD3+0GbrPMjOci8SNlFBrtIMubNeZPgAqBZ5DszyNmqIm 901m+SczIv+1VguNFj93joQQ/JgONdpyuYvk3UdOlBnSj/sMlLeB/yFzMTG+3nLR2l+A 0Blq7VRDUGOg30xWdhLq2W01605/6uzzLIj/6i2mRMFzfQ+EqoJmlrMpq2/Oqq7dBdxp L8fGIhdoXQao31otsmqVhb77yBnSJZU6uL4srJVBCgtZUEy6y6yHxIy4usKM3lyW0PMW GIVfwCbwxZIUkIWh28cIBHeBZUA5FMVtGTsrQ/KKj41Xv5rYEAIl1VXzV+IEqZBvsHUc uxFQ== 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 v15-20020a17090690cf00b0071dedede728si6578978ejw.628.2022.07.02.12.51.42; Sat, 02 Jul 2022 12:52:08 -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 S230216AbiGBTh5 (ORCPT + 99 others); Sat, 2 Jul 2022 15:37:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbiGBTh4 (ORCPT ); Sat, 2 Jul 2022 15:37:56 -0400 Received: from smtp.smtpout.orange.fr (smtp08.smtpout.orange.fr [80.12.242.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A9FA460 for ; Sat, 2 Jul 2022 12:37:55 -0700 (PDT) Received: from [192.168.1.18] ([90.11.190.129]) by smtp.orange.fr with ESMTPA id 7iwCoALuLgNxB7iwCosqC6; Sat, 02 Jul 2022 21:37:53 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Sat, 02 Jul 2022 21:37:53 +0200 X-ME-IP: 90.11.190.129 Message-ID: <39e65450-eea6-8498-1dcc-a40699b49457@wanadoo.fr> Date: Sat, 2 Jul 2022 21:37:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 2/4] fs/ntfs3: Rename bitmap_size() as ntfs3_bitmap_size() Content-Language: en-US To: Andy Shevchenko Cc: agk@redhat.com, snitzer@kernel.org, dm-devel@redhat.com, vneethv@linux.ibm.com, oberpar@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, almaz.alexandrovich@paragon-software.com, yury.norov@gmail.com, linux@rasmusvillemoes.dk, linux-s390@vger.kernel.org, ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Newsgroups: gmane.linux.kernel.janitors,gmane.linux.kernel.device-mapper.devel,gmane.linux.kernel References: <56a3cb896ec446ca24e4756042d9f0829afc671a.1656785856.git.christophe.jaillet@wanadoo.fr> From: Christophe JAILLET In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Le 02/07/2022 à 20:58, Andy Shevchenko a écrit : > On Sat, Jul 02, 2022 at 08:29:27PM +0200, Christophe JAILLET wrote: >> In order to introduce a bitmap_size() function in the bitmap API, we have >> to rename functions with a similar name. > > ... > >> /* NTFS uses quad aligned bitmaps. */ >> -static inline size_t bitmap_size(size_t bits) >> +static inline size_t ntfs3_bitmap_size(size_t bits) >> { >> return ALIGN((bits + 7) >> 3, 8); > > It would be easier to understand in a way > > return BITS_TO_BYTES(ALIGN(bits, 64)); This purpose of the patch was only to rename a function, not to modify the code itself, even if both version also looks equivalent to me. So I'll leave it to you or anyone else to change it. CJ > >> } >