aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2018-05-16 16:34:31 -0700
committerDavid Sterba <dsterba@suse.com>2018-12-17 14:51:29 +0100
commit60ca842e345716eb8c3f7df070511848b9f1a796 (patch)
tree41a3bb52fa16b46cc08c7d4df4dd54fe664fc3da /fs/btrfs/volumes.h
parentBtrfs: prevent ioctls from interfering with a swap file (diff)
downloadlinux-dev-60ca842e345716eb8c3f7df070511848b9f1a796.tar.xz
linux-dev-60ca842e345716eb8c3f7df070511848b9f1a796.zip
Btrfs: rename and export get_chunk_map
The Btrfs swap code is going to need it, so give it a btrfs_ prefix and make it non-static. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r--fs/btrfs/volumes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index aefce895e994..bca18f70650a 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -462,6 +462,8 @@ unsigned long btrfs_full_stripe_len(struct btrfs_fs_info *fs_info,
int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans,
u64 chunk_offset, u64 chunk_size);
int btrfs_remove_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset);
+struct extent_map *btrfs_get_chunk_map(struct btrfs_fs_info *fs_info,
+ u64 logical, u64 length);
static inline void btrfs_dev_stat_inc(struct btrfs_device *dev,
int index)