summaryrefslogtreecommitdiff
path: root/fs/btrfs/free-space-cache.c
diff options
context:
space:
mode:
authorLijuan Li <lilijuan@iscas.ac.cn>2024-02-06 04:56:00 +0300
committerDavid Sterba <dsterba@suse.com>2024-03-04 18:24:48 +0300
commit737e6e5f0c8ebb584d055fb027bc22f856a80d1a (patch)
tree7f0c181dcd2248fcb96a38d6cbe883c126385d35 /fs/btrfs/free-space-cache.c
parent3c9da0d55c6e4f22d0ac67a1b6b7532b0f143f42 (diff)
downloadlinux-737e6e5f0c8ebb584d055fb027bc22f856a80d1a.tar.xz
btrfs: mark __btrfs_add_free_space static
__btrfs_add_free_space is only used in free-space-cache.c, so mark it static. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Lijuan Li <lilijuan@iscas.ac.cn> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
-rw-r--r--fs/btrfs/free-space-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index f74b13f9b193..deadf5e6258a 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -2619,7 +2619,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)
{