[PATCH 04/15] btrfs: move btrfs_pinned_by_swapfile prototype into volumes.h

Josef Bacik
2022-09-14T23:05:10Z

This is defined in volumes.c, move the prototype into volumes.h.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
fs/btrfs/ctree.h | 2 --
fs/btrfs/volumes.h | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 0c5a6ea2eeb3..36a473f05831 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -243,8 +243,6 @@ struct btrfs_swapfile_pin {
int bg_extent_count;
};

-bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr);
-
/*
* Exclusive operations (device replace, resize, device add/remove, balance)
*/
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index 96a7b437ff20..db4cf51134fd 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -731,4 +731,5 @@ 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);
unsigned long btrfs_chunk_item_size(int num_stripes);
+bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr);
#endif
--
2.26.3