Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp125415lqo; Wed, 27 Mar 2024 08:34:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8zaAOm+UH956hbadpYBZDbrZdLmjmIciX7hjgYEsZ39AR9OAql9INbHg2jPPc9TXo2lYlq10ac+8vHY0PMTgAfGu9nh18poazGng7ww== X-Google-Smtp-Source: AGHT+IFXL4VF7rn8idknOY4J7S973qdPZ9pNeOGtBsPAt1TVVcwTshY7OClls59L2Zw8xxt3GUCM X-Received: by 2002:a17:906:f5a6:b0:a4e:869:1ab2 with SMTP id cm38-20020a170906f5a600b00a4e08691ab2mr1510610ejd.13.1711553657654; Wed, 27 Mar 2024 08:34:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711553657; cv=pass; d=google.com; s=arc-20160816; b=y2LHfTu1vj8/3MT8vC1YQCwOoFejQFurTYQ4L8C9t/bp0XUnnuBPjVbyYZ/TroTi0Y 4cFvjCcO5phMEXAtSeqcGcS8o01HPbgx/eRGwjfuTjOqw+jQCg+rvOKkLOAMUR7eWv1Y DHI3JXS9ZqGFkUmd+k+LaTuFJFsv4vZFqHc2jKa30+uS0e2adSyrPbTsn1qOC/l1TYY8 ZNW0gBKHyX2trjyegPKMS8M8QNkfTCF0itWPm59GlakyXh61vLb07kkPXjNerxBBbmS0 iNgYyZ3nYcAjZYN6dfmZh/LoeN6m+EEtRYLNaw5xZd0taxT7ps/L6aCbuALiKD4F2xJ3 2qpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9poqrEOKigx3pLpAMCAgfTAnGInK6sTahhfHPoAFv4k=; fh=eeSeTvetoMRkp5PSTS6h2oCY3CPbQZc6sQ9gRLTAkf0=; b=YTU6L5rttM6Zjgmr7/lPv24Hta5JmajK6srXvBZ1jsQXi8LLk9jvhx+BltLkZh0nG0 jL4Qf5G1xg/FjvpZABm6o+KldvY42apJCYAVGPAOmiPfYk3IeRHX4Y3vhtTZWpsCa105 lIo2meOIvcsU7jdu8A3GID9vtW35SjFOWRyLM9zeXy3tu4dSWJqW61xVGzf1X421CJq1 MtFZGjCdqCcAPwp3noYyBN21brZR5KB8heX7LCWjHMdiOpHN1DfH1gHTJre0s14heYVT DjrBQXhokQDI5y2CRPGGVTztMiANXhPJZxr+h3fDTKuYqTbI+blSAd4EWUkCvixtwrj4 seUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NT6qT5nz; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-121520-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b6-20020a17090630c600b00a46930c8271si4711422ejb.564.2024.03.27.08.34.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 08:34:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121520-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NT6qT5nz; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-121520-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 617711F2B651 for ; Wed, 27 Mar 2024 15:34:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66ED5148829; Wed, 27 Mar 2024 15:25:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NT6qT5nz" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E8301487F4; Wed, 27 Mar 2024 15:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711553108; cv=none; b=gOf6YO7gZu3JbojO9EIwOzMVobbiPFtxO7D9qUdugDboH2TwgsRJ9FvwnrLpvCFlZ79InJEJNVTXDVpsZlGkRNZ+0YIWXGC2f74i15Zk3PGXu1BABdmbdoSQFLconR/SBLRqTOD2G9WLYopWurlTtqSRbRaeRp3FOmibEBMCrlc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711553108; c=relaxed/simple; bh=u2jcYbqW/2iYrBZ8+bFOWIsxfZaEDXIGPQlM3mcmYrQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DVqrXGC3ndnZbXS2iMicYZ2FxS+Fv/ZSqd5SiDcV2OcegaaCBaYsyHCLblQ1WdXuGV7HtJIUORBhJaMrEOxNzb660EeeDUbc869wGmCpmmzec0pJAtBBcjAU/LH8Ci8cyRUv6xWoPlUF9oPKcn1DrM+W4v3Wkol2uxUloye0r34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NT6qT5nz; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711553107; x=1743089107; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=u2jcYbqW/2iYrBZ8+bFOWIsxfZaEDXIGPQlM3mcmYrQ=; b=NT6qT5nzGAJ0aH98hZvssDYzrCax5DDXTN6IN37AZhCIrbG7gaZftUhX s3gOWw8ySGpVP+/fF+dlmrlSgrUf0VyLaqJzUr1aJZYm1ChRns3D2UUG3 NhvIXi3xMOLnDcN4lrPznze4sigXznwOd3o4vz5MzhDq5npVK7QDvhQVw SrRaRIR1C95pz0KC9bahCktV2mN7z1OlqyEEHUmgvIYK5D0xpjPt/gfxv byEN4ET1ZUmLpatzGQsGgJL6RHO7EFyQ20YPrtHMlsYJgUMNopjoX/VZJ o/vgky6kVdx49xgf+Il8AkuHZqSCYiFkQad0GEPn1NaDZjKGjd17xyBqG g==; X-CSE-ConnectionGUID: Z9+Yrhv6RdOixjC4Dc5MtA== X-CSE-MsgGUID: CmFDSyLqQdKw0MgZWkkHfw== X-IronPort-AV: E=McAfee;i="6600,9927,11026"; a="6518198" X-IronPort-AV: E=Sophos;i="6.07,159,1708416000"; d="scan'208";a="6518198" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2024 08:25:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,159,1708416000"; d="scan'208";a="16414246" Received: from newjersey.igk.intel.com ([10.102.20.203]) by fmviesa008.fm.intel.com with ESMTP; 27 Mar 2024 08:25:04 -0700 From: Alexander Lobakin To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Alexander Lobakin , Yury Norov , Alexander Potapenko , nex.sw.ncis.osdt.itp.upstreaming@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Przemek Kitszel , David Sterba Subject: [PATCH net-next v6 10/21] btrfs: rename bitmap_set_bits() -> btrfs_bitmap_set_bits() Date: Wed, 27 Mar 2024 16:23:47 +0100 Message-ID: <20240327152358.2368467-11-aleksander.lobakin@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327152358.2368467-1-aleksander.lobakin@intel.com> References: <20240327152358.2368467-1-aleksander.lobakin@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit bitmap_set_bits() does not start with the FS' prefix and may collide with a new generic helper one day. It operates with the FS-specific types, so there's no change those two could do the same thing. Just add the prefix to exclude such possible conflict. Reviewed-by: Przemek Kitszel Acked-by: David Sterba Reviewed-by: Yury Norov Signed-off-by: Alexander Lobakin --- fs/btrfs/free-space-cache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index c8a05d5eb9cb..3ab8dea5036b 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -1911,9 +1911,9 @@ static inline void bitmap_clear_bits(struct btrfs_free_space_ctl *ctl, ctl->free_space -= bytes; } -static void bitmap_set_bits(struct btrfs_free_space_ctl *ctl, - struct btrfs_free_space *info, u64 offset, - u64 bytes) +static void btrfs_bitmap_set_bits(struct btrfs_free_space_ctl *ctl, + struct btrfs_free_space *info, u64 offset, + u64 bytes) { unsigned long start, count, end; int extent_delta = 1; @@ -2249,7 +2249,7 @@ static u64 add_bytes_to_bitmap(struct btrfs_free_space_ctl *ctl, bytes_to_set = min(end - offset, bytes); - bitmap_set_bits(ctl, info, offset, bytes_to_set); + btrfs_bitmap_set_bits(ctl, info, offset, bytes_to_set); return bytes_to_set; -- 2.44.0