]> git.baikalelectronics.ru Git - kernel.git/commitdiff
btrfs: move btrfs_init_async_reclaim_work prototype to space-info.h
authorJosef Bacik <josef@toxicpanda.com>
Wed, 14 Sep 2022 23:04:39 +0000 (19:04 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:06 +0000 (12:28 +0200)
The code for this helper is in space-info.c, move the prototype to
space-info.h.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/space-info.h

index 2ef8f70934da400c59c6e4249e449c4fa14555b7..a34ceaef81fe4c1d0d4eac94f3f216db6fb382b0 100644 (file)
@@ -528,8 +528,6 @@ struct btrfs_discard_ctl {
        atomic64_t discard_bytes_saved;
 };
 
-void btrfs_init_async_reclaim_work(struct btrfs_fs_info *fs_info);
-
 /* fs_info */
 struct reloc_control;
 struct btrfs_device;
index 8f594874094103a0f9c28664c6191039327195c2..ce66023a9eb8b0e2e7e4901fdd93b3eaf2d3aa7d 100644 (file)
@@ -158,5 +158,6 @@ static inline void btrfs_space_info_free_bytes_may_use(
 int btrfs_reserve_data_bytes(struct btrfs_fs_info *fs_info, u64 bytes,
                             enum btrfs_reserve_flush_enum flush);
 void btrfs_dump_space_info_for_trans_abort(struct btrfs_fs_info *fs_info);
+void btrfs_init_async_reclaim_work(struct btrfs_fs_info *fs_info);
 
 #endif /* BTRFS_SPACE_INFO_H */