btrfs: make btrfs_should_periodic_reclaim() static
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Wed, 21 May 2025 10:14:05 +0000 (12:14 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:44:11 +0000 (23:44 +0200)
btrfs_should_periodic_reclaim() is not used outside of space-info.c so
make it static and remove the prototype from space-info.h.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c
fs/btrfs/space-info.h

index d9087aa81b2130188fedc553d9c5afc4fe6c982c..23685d6e8cbc4c42d27ab454dd0db6fce3a129b3 100644 (file)
@@ -2139,7 +2139,7 @@ void btrfs_set_periodic_reclaim_ready(struct btrfs_space_info *space_info, bool
        }
 }
 
-bool btrfs_should_periodic_reclaim(struct btrfs_space_info *space_info)
+static bool btrfs_should_periodic_reclaim(struct btrfs_space_info *space_info)
 {
        bool ret;
 
index 92b7f5e2b8500bcb1baf84e5255793951618e2c3..7de31541ab459a48f8ab94eacb647ded19ee6ed4 100644 (file)
@@ -306,7 +306,6 @@ u64 btrfs_account_ro_block_groups_free_space(struct btrfs_space_info *sinfo);
 
 void btrfs_space_info_update_reclaimable(struct btrfs_space_info *space_info, s64 bytes);
 void btrfs_set_periodic_reclaim_ready(struct btrfs_space_info *space_info, bool ready);
-bool btrfs_should_periodic_reclaim(struct btrfs_space_info *space_info);
 int btrfs_calc_reclaim_threshold(const struct btrfs_space_info *space_info);
 void btrfs_reclaim_sweep(const struct btrfs_fs_info *fs_info);
 void btrfs_return_free_space(struct btrfs_space_info *space_info, u64 len);