Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp50879imk; Sat, 2 Jul 2022 11:30:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v0baUbfbT5al2dlBXUjUSaNYsh5O5ZHSLbF26w+UHCs4Ggcs8kAhwbs4Jn7P4Xm8A57UCs X-Received: by 2002:a17:90a:eb09:b0:1ef:7df7:cdf7 with SMTP id j9-20020a17090aeb0900b001ef7df7cdf7mr374630pjz.185.1656786625865; Sat, 02 Jul 2022 11:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656786625; cv=none; d=google.com; s=arc-20160816; b=tanzhzGx3jwz2BDxzQdvnCcYbRAa1CLKLQN7LroOVOQHgT1fxuym+GuFqURipWxLkL x8/B5+TY8n71vGCeTT9UFAbJWtVG5VQECndty/RhNcogthHw816q4mojlX3WU39nBYdn iCjmfMgnUrNW5DyssESwt+ip+IlUNGjx4n4+UUvLrPQQ4c6SR5yzO5aWlxcriGpHsmvL qjvptGxxlRiZ2wkifNwrLJ86SrVy9laWjVPOL9/x19GwhEdA1Zb9H0wgSmX3MbcYh5gl 7bZ/QpLvv0euP8/dQot8nRKFOIuAnmQKSaVa8twynQMUS0XLAwZafGQQpXN802fXxSEs l6kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WGLJt8P18IDYzdj/RXa/6m7nh6zIgPh7dXlQ95F0H5s=; b=yoh68EhtAIORVIynDaF+FJj8YCfruWlPQer2aubAi6ykKejQvmb4Qiy8qaGzc/de/P R6RbkfNiDbRrvOwdVXpEONZjF0JoMGDo8VWGVBRN6WEvnwzJB+5Q9NJOw9gTEqYmZO+G KZIi8f8HavHUInvliK/njOE9EHjJwI1xK0YXVBF+PfkAo0YYP4HzMPQHGC4sy+zCZFzl FTiDS8JiZNCLKTrdk/StkslW5LCOu/bf+liLQ4slWqG+9EabBRYgBIoxOUdNhICPycOa ECMJ+MFOZKh40TbDF71Ro+TuONSCPACCCxyanOpV50LDqcmEpPBGUCw4XlAmNc/J3cxd gyxA== 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 k11-20020a056a00168b00b0051b904d9c7csi6605938pfc.251.2022.07.02.11.30.14; Sat, 02 Jul 2022 11:30:25 -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 S232475AbiGBS3E (ORCPT + 99 others); Sat, 2 Jul 2022 14:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232431AbiGBS3D (ORCPT ); Sat, 2 Jul 2022 14:29:03 -0400 Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 996E5DED2 for ; Sat, 2 Jul 2022 11:29:01 -0700 (PDT) Received: from pop-os.home ([90.11.190.129]) by smtp.orange.fr with ESMTPA id 7hrUoTjFU4Ltq7hrUonitC; Sat, 02 Jul 2022 20:28:59 +0200 X-ME-Helo: pop-os.home X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Sat, 02 Jul 2022 20:28:59 +0200 X-ME-IP: 90.11.190.129 From: Christophe JAILLET To: 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, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk Cc: linux-s390@vger.kernel.org, ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 0/4] Introduce bitmap_size() Date: Sat, 2 Jul 2022 20:28:53 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 This serie introduces bitmap_size() which returns the size, in bytes, of a bitmap. Such a function is useful to simplify some drivers that use vmalloc() or other functions to allocate some butmaps. It also hides some implementation details about how bitmaps are stored (array of longs) Before introducing this function in patch 3, patch 1 and 2 rename some functions with the same name but with different meaning. Finaly, patch 4 makes use of the new function in bitmap.h. Other follow-up patches to simplify some drivers will be proposed later if/when this serie is merged. Christophe JAILLET (4): s390/cio: Rename bitmap_size() as idset_bitmap_size() fs/ntfs3: Rename bitmap_size() as ntfs3_bitmap_size() bitmap: Introduce bitmap_size() bitmap: Use bitmap_size() drivers/md/dm-clone-metadata.c | 5 ----- drivers/s390/cio/idset.c | 8 ++++---- fs/ntfs3/bitmap.c | 4 ++-- fs/ntfs3/fsntfs.c | 2 +- fs/ntfs3/index.c | 6 +++--- fs/ntfs3/ntfs_fs.h | 2 +- fs/ntfs3/super.c | 2 +- include/linux/bitmap.h | 15 +++++++++------ lib/math/prime_numbers.c | 2 -- 9 files changed, 21 insertions(+), 25 deletions(-) -- 2.34.1