]> git.baikalelectronics.ru Git - kernel.git/commitdiff
btrfs: move btrfs_pinned_by_swapfile prototype into volumes.h
authorJosef Bacik <josef@toxicpanda.com>
Wed, 14 Sep 2022 23:04:40 +0000 (19:04 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:06 +0000 (12:28 +0200)
This is defined in volumes.c, move the prototype into volumes.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/volumes.h

index a34ceaef81fe4c1d0d4eac94f3f216db6fb382b0..1569070cf15eef27045ef6706863fcd1a5251afa 100644 (file)
@@ -560,8 +560,6 @@ struct btrfs_swapfile_pin {
        int bg_extent_count;
 };
 
-bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr);
-
 enum {
        BTRFS_FS_CLOSING_START,
        BTRFS_FS_CLOSING_DONE,
index f19a1cd1bfcf2fbc135c1d8f4148f503a8f1cc14..927004fa05773e9163299236f4529a723ccc0b00 100644 (file)
@@ -731,4 +731,6 @@ const char *btrfs_bg_type_to_raid_name(u64 flags);
 int btrfs_verify_dev_extents(struct btrfs_fs_info *fs_info);
 bool btrfs_repair_one_zone(struct btrfs_fs_info *fs_info, u64 logical);
 
+bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr);
+
 #endif