From patchwork Fri Sep 22 10:39:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 13395509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6CA1CD4F57 for ; Fri, 22 Sep 2023 10:39:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233354AbjIVKj1 (ORCPT ); Fri, 22 Sep 2023 06:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233361AbjIVKjX (ORCPT ); Fri, 22 Sep 2023 06:39:23 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2799CC6 for ; Fri, 22 Sep 2023 03:39:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 479DAC433C9 for ; Fri, 22 Sep 2023 10:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695379156; bh=6DlJ1krS+nsNbOzeaQdSWdPdqkEYQPl7zMFu4I/iN0A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cODs+yIs5Gk3zlh4BtabECZMc3eZyhljBGFV5oOvSzdha4lteXj6+4Z/mn+7bueYp kvmR8UT5HYHjViZtMsS63nxIiL1VB3+4TLk5CgeFIoHtLOBf0GPXeXtGmaWOT8CCFG uU9gFgGCxdpRGeqRJ7zZvmMXBCfuzyoRRfpon9rfllzH2ALPA4sf7oazqOJvSgGtTO Mg7t2bzY4dzJz8NjK4pXCfZO20MmBIE0n0YDpPg9Tk7Yt8s1i6++PLLThlZlqNkMpZ tZKMv1TowpuE0HLzepAgNsDtGwIBX0v/LoYrko+yiCQJatSe9prjuu8pKDSmtp4Dfe gMYA29nw/Cq3g== From: fdmanana@kernel.org To: linux-btrfs@vger.kernel.org Subject: [PATCH 3/8] btrfs: make wait_extent_bit() static Date: Fri, 22 Sep 2023 11:39:04 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Filipe Manana The function wait_extent_bit() is not used outside extent-io-tree.c so make it static. Furthermore the function doesn't have the 'btrfs_' prefix. Signed-off-by: Filipe Manana Reviewed-by: Anand Jain --- fs/btrfs/extent-io-tree.c | 4 ++-- fs/btrfs/extent-io-tree.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/extent-io-tree.c b/fs/btrfs/extent-io-tree.c index 1ca0827493a6..033544f79e2b 100644 --- a/fs/btrfs/extent-io-tree.c +++ b/fs/btrfs/extent-io-tree.c @@ -766,8 +766,8 @@ static void wait_on_state(struct extent_io_tree *tree, * The range [start, end] is inclusive. * The tree lock is taken by this function */ -void wait_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bits, - struct extent_state **cached_state) +static void wait_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, + u32 bits, struct extent_state **cached_state) { struct extent_state *state; diff --git a/fs/btrfs/extent-io-tree.h b/fs/btrfs/extent-io-tree.h index 28c23a23d121..ddcc8bbf1a05 100644 --- a/fs/btrfs/extent-io-tree.h +++ b/fs/btrfs/extent-io-tree.h @@ -192,7 +192,5 @@ int find_contiguous_extent_bit(struct extent_io_tree *tree, u64 start, bool btrfs_find_delalloc_range(struct extent_io_tree *tree, u64 *start, u64 *end, u64 max_bytes, struct extent_state **cached_state); -void wait_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bits, - struct extent_state **cached_state); #endif /* BTRFS_EXTENT_IO_TREE_H */