Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp131973rdb; Thu, 1 Feb 2024 04:27:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQrSf4JoonBB17eAs3Hq9pf2pYsGhgnh4u0cdEhxlrFnMwxeMDqlEpmc/H9hcn7qtfuwcd X-Received: by 2002:a05:622a:2d4:b0:42b:eb8d:eab3 with SMTP id a20-20020a05622a02d400b0042beb8deab3mr4619419qtx.51.1706790475940; Thu, 01 Feb 2024 04:27:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706790475; cv=pass; d=google.com; s=arc-20160816; b=iJX8mqGLr53uI0/Iy/OXu8F7GODZpCdXBc8r5njg8jRoACzG/wDiN5he8zdXDAYKXH BN+XDHnBEzDYKCZY72oBnt1tdYUlVu+Y09fRVSQufqoC1cVZR85vGrxRA/cgPRiGCHdK L5KVjjuBCghi45kzS7xyCBA7rRFAz4Bm5i1YzcfJWWle+0X6qFxT92kLSxOTgeGTxEal CUo80OU73i+0wJXP6/ERk97Q0Am13FZzc+QojXjj6E7Gnke1+pgVwZ8v9q3IOf952tqU Bk2PGp3+NxsYMyJlYFiXkkNYXWTmqQdahNXbFSUPN9VoF6FIVVr9oUCj6A6mbLOKma2C uALQ== 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=mHMANswgpt+5n/zqH1KebSY/4PT4nrB4Dos0sw0QSO4=; fh=JelNNy9pYq7qkfDu3/qLwnZdJwYmaOarB5+cs9UM1C4=; b=dy4jxr55rPWHDNninyyboF/PASE9OHKkeX1++B42jsYSj12O1zY9aI+Baa2844i5nj LinYJv1/C3GL9YU63PSM3oPEihZgbJz3kJn7TYkI4HO0hdZeEloTj4JoBzyMAPBLy+iu cs76C0T80QYV85HXjPQ/GR9sjqmj7WLMG71Lm/g+i6I17fXQ/QgeqvN55/WiMHPtF0/Q Nl+T5Zc/ItiYFHf+Avc1AWBuxoG46iHlEN5XjmrSFo3GjhIu8XtudxZvixrsBe/dM8nj urf7sqYLZ25jS/kZctYeubGS6wcF+1DOq/wUnSMXjNm32hyFHGNolBmFX7yS/WMZVEUw BLNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=By9L0e9J; 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-48122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCV4VkWS6FtEKRxDWaTtHZbadLiarGnaE3aMxctxmWaxOQlnOWCE2NFLanpjj8SEL3ox3rXSpw6KsphsyFVDgzF3DMwT2PkY2UOzOeJZGQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o6-20020ac85a46000000b0042a3d046c39si14507996qta.61.2024.02.01.04.27.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 04:27:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=By9L0e9J; 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-48122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48122-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CAE21C250F6 for ; Thu, 1 Feb 2024 12:27:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA02C5CDCF; Thu, 1 Feb 2024 12:24:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="By9L0e9J" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 6A07016086B; Thu, 1 Feb 2024 12:24:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706790265; cv=none; b=P2102AXeTulv7jXUxgHj9YtLn6DUzTzseHDPPDZhYrOySf2vCu4EJvzXEK7osVie6DcDPECzYz5wVXNX7GfhSTlyXQjo/PSqISWswAFWufucUNSwD5/5zkapow3l5Zhi8+8KoHiO0eqx//c8OKRH/1397QkesT5+4rWuyLtkdGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706790265; c=relaxed/simple; bh=e3PhzQpSUJrSBLo17HbDTH0gB03sLbkzrAZOLsNo208=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=idRo/RIdblSW1Hll0y6LR/uL0r8apu2QRpcSB6/hn3O3i57jO7n0x3dphEFU7yBDA7jmg9ecwtG0WeW8h5qCG9DgfvUKyrMc/O3I0EAiJu/kKF4CW04xJmC/vc6h8GTtPX30EuUjualJbwRpGWcMgW6nhn89xGAA4WYIN5ltBCU= 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=By9L0e9J; arc=none smtp.client-ip=198.175.65.15 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=1706790264; x=1738326264; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=e3PhzQpSUJrSBLo17HbDTH0gB03sLbkzrAZOLsNo208=; b=By9L0e9JNyOBSz1OYirC3ozKnHwnle2dcIO9372qRnCcr5seLQhY8egU WJ290pJWUXjvaGz7Set5uFLFdCLD3V75iBOKhJS1GY5UQk7AUOyWIzMV0 j3Try2X7c6PdNoNxCUDkMSn4F2rzmPpmR1jMY8f11EcHOV2oMBzzQQ4P1 9bWBv8LN8IZDkWNBVRdy8ipo0uHMXLUdH4VXnK7CfZjEvpxg0+fmE2YBk 54nO0SEaT+iDb99wMwYNoGalzRiW8ayL8BQCUJ2QtU3CaBt+6JbfIm7XO KJIVvmxSVg0sfedmdU+eSzrbH6ag/1y1RSCfogjffrcWEsT4vXZE1P5Db Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="3747070" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="3747070" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 04:24:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="4499119" Received: from newjersey.igk.intel.com ([10.102.20.203]) by orviesa004.jf.intel.com with ESMTP; 01 Feb 2024 04:24:18 -0800 From: Alexander Lobakin To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Alexander Lobakin , Michal Swiatkowski , Marcin Szycik , Wojciech Drewek , Yury Norov , Andy Shevchenko , Rasmus Villemoes , Alexander Potapenko , Jiri Pirko , Ido Schimmel , Przemek Kitszel , Simon Horman , linux-btrfs@vger.kernel.org, dm-devel@redhat.com, ntfs3@lists.linux.dev, linux-s390@vger.kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, David Sterba Subject: [PATCH net-next v5 10/21] btrfs: rename bitmap_set_bits() -> btrfs_bitmap_set_bits() Date: Thu, 1 Feb 2024 13:22:05 +0100 Message-ID: <20240201122216.2634007-11-aleksander.lobakin@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240201122216.2634007-1-aleksander.lobakin@intel.com> References: <20240201122216.2634007-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 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 d372c7ce0e6b..47c979c3e67e 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -1913,9 +1913,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; @@ -2251,7 +2251,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.43.0