From patchwork Tue Feb 6 01:56:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: lilijuan@iscas.ac.cn X-Patchwork-Id: 197140 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1269608dyb; Mon, 5 Feb 2024 18:04:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9Ur3cBTtnrupXDsWLBSXn3Neccrnl6+lXpt6hzONX4VjBgvMGLx4uQyDYUgkmigRhPigM X-Received: by 2002:a05:6a20:914a:b0:19c:a8a8:5c7b with SMTP id x10-20020a056a20914a00b0019ca8a85c7bmr307866pzc.56.1707185045304; Mon, 05 Feb 2024 18:04:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707185045; cv=pass; d=google.com; s=arc-20160816; b=attcu3b3zKsvX74kNl4qSYsKH5Q0UGeW+TUAawCwFWJpGr+/Y4kb/A6gz78xq9cZ8K T1pil+0fKeC4xg/1SBhgTOgiBU+gRoFzkAAf5cGYhAaMuFNtK4MU6l61nKLAejgfkSLe asZlFbatZCQke66phVmNKo0FhTG/rTdz0uLGxD70FmnRmJOGkvkdrzAiBdvPOjUnQ48T +jVPx1t5yAubTDWZePuRM5yAl3pfq+CqSCYlHhOXQS3fWzXPEtEy/EnkBHL6Ee2erjyF 7FIkSq8xgdUveAGEBh35zjoEeUB871ElxN4c521ZBTzrxfOa3EF2CKklMBLw17oTaUwt hLiA== 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:message-id:date:subject:cc:to :from; bh=Z1ltHTips1iO+tR34joV5LAQp2GnjlwO7ZAV/8OY0pM=; fh=1wzfvhY3MV0dHEuSI+MWu0yiaT8V9NMeRAYlLPjykGE=; b=Kvyc7eHgF4R90auextJExaEBzjRbe8viR03ejx53n4YYy+CwYZ3XFTNCDz3OOORCGt gyRpCPOicpjxU5lCY4VFp7OyvYux4y2eDUA9rTlETiDfMCy1u+EFijf9p7pfvlSOoCfJ UQ2KALrdJfDWWXSFwhjih65XDrJE4mWREACkPoIFfsoqB652vkaf+3Xi6C/Hr07mAqLS msykh9nzYXKvLST6f/0GA4k6Xtnw0868oeJOXGhrMFok7XP6gEjl43INJUo/Awh68gbe 3Av4ZA73dkvaPJ7/yE8gw7juLMfuHpFyFHkVp7dcsxL6p4eNSHT5E56noQoEDKyAfyhm aDlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=iscas.ac.cn); spf=pass (google.com: domain of linux-kernel+bounces-54179-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54179-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWD3WI4yvS2tnjP8yFQzfyhDoTlMQHbw68bhpwh0GqBUZg0FizAx+wW2vcjtpD/HckHwI09Vlzcf5k9fUr/80cF++nqoA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e19-20020a170902f1d300b001d9773a1991si756997plc.509.2024.02.05.18.04.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 18:04:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54179-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=iscas.ac.cn); spf=pass (google.com: domain of linux-kernel+bounces-54179-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54179-ouuuleilei=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 502DC2823DD for ; Tue, 6 Feb 2024 02:03:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 922195730A; Tue, 6 Feb 2024 02:03:33 +0000 (UTC) Received: from cstnet.cn (smtp84.cstnet.cn [159.226.251.84]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B560956B6D; Tue, 6 Feb 2024 02:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.226.251.84 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707185012; cv=none; b=NwtvOVg/uSRvXttVIf1iP0L/sa0QWKaf2U7kououobA2udmt84k/C5V5hKnbhbZxmgsXCrDU4dVvSLgNEYeMcxdE0Gal/wVxgEKfX7LtYqV8r5vGuL/09cUOBfayTyhq4i3jWY9Kn3z9y3zHeQzRpRaDHNjG3lkv9JHpgTISr7k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707185012; c=relaxed/simple; bh=HCHH0zlG8Okh9pH+9a449X/wcy1iGT612BVT0ULldVI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=iFiKLaVIIbhCrnm4NhCIPhuw6GrPhjFA5nB7xHUjfLxsfegzdjrPWEDtqg3k0gr2MG3UVsBrL22PS9knF4/6HYRlcZBcFGxQNRC8EOHtVer/66i+k7O5vtaAFCbBMRt+XKiW3uzgpNargmGu7m6rWi40pv7ohMZGoOz+xcyAm88= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn; spf=pass smtp.mailfrom=iscas.ac.cn; arc=none smtp.client-ip=159.226.251.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iscas.ac.cn Received: from lijuan-ubuntu-04.home.arpa (unknown [124.16.138.129]) by APP-05 (Coremail) with SMTP id zQCowADX36OzkcFl3IMSAQ--.8824S2; Tue, 06 Feb 2024 09:56:03 +0800 (CST) From: lilijuan@iscas.ac.cn To: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, pengpeng@iscas.ac.cn, Lijuan Li Subject: [PATCH] btrfs: mark __btrfs_add_free_space static Date: Tue, 6 Feb 2024 09:56:00 +0800 Message-Id: <20240206015600.115756-1-lilijuan@iscas.ac.cn> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: zQCowADX36OzkcFl3IMSAQ--.8824S2 X-Coremail-Antispam: 1UD129KBjvJXoW7KFyDAFW5JF4fZFW5uFy5twb_yoW8Xw1kpF n3AFsxtw1UArsYvFWvgw4qv34Sga4vqa1Uu3s8A3yfXrZxGr1DXFyqv3W8A3W3trWkJr4x Xas09ryUArsIyr7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvY14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j 6r4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwAKzVCY07xG64k0F24l c2xSY4AK67AK6w4l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxV Aqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r12 6r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6x kF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AK xVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x0J UfnYwUUUUU= X-CM-SenderInfo: poloxyxxdqqxpvfd2hldfou0/ X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790113265761798528 X-GMAIL-MSGID: 1790113265761798528 From: Lijuan Li __btrfs_add_free_space is only used in free-space-cache.c, so mark it static. Signed-off-by: Lijuan Li Reviewed-by: Johannes Thumshirn Reviewed-by: David Sterba --- fs/btrfs/free-space-cache.c | 2 +- fs/btrfs/free-space-cache.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index d372c7ce0e6b..812994f456e4 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -2621,7 +2621,7 @@ static void steal_from_bitmap(struct btrfs_free_space_ctl *ctl, } } -int __btrfs_add_free_space(struct btrfs_block_group *block_group, +static int __btrfs_add_free_space(struct btrfs_block_group *block_group, u64 offset, u64 bytes, enum btrfs_trim_state trim_state) { diff --git a/fs/btrfs/free-space-cache.h b/fs/btrfs/free-space-cache.h index 33b4da3271b1..d9b7fbc2008a 100644 --- a/fs/btrfs/free-space-cache.h +++ b/fs/btrfs/free-space-cache.h @@ -114,8 +114,6 @@ int btrfs_write_out_cache(struct btrfs_trans_handle *trans, void btrfs_init_free_space_ctl(struct btrfs_block_group *block_group, struct btrfs_free_space_ctl *ctl); -int __btrfs_add_free_space(struct btrfs_block_group *block_group, u64 bytenr, - u64 size, enum btrfs_trim_state trim_state); int btrfs_add_free_space(struct btrfs_block_group *block_group, u64 bytenr, u64 size); int btrfs_add_free_space_unused(struct btrfs_block_group *block_group,