summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2019-06-20 15:37:49 -0400
committerDavid Sterba <dsterba@suse.com>2019-09-09 14:59:04 +0200
commit6f410d1b3dbf9213ee89c569e8213511319bbd90 (patch)
tree0eb87c7eabfd9bc0d4b6e6a4fc0f666ac02759ec /fs/btrfs/ctree.h
parent676f1f759fa3f65f8987295c99615c1090e074ea (diff)
downloadlinux-stable-6f410d1b3dbf9213ee89c569e8213511319bbd90.tar.gz
linux-stable-6f410d1b3dbf9213ee89c569e8213511319bbd90.tar.bz2
linux-stable-6f410d1b3dbf9213ee89c569e8213511319bbd90.zip
btrfs: export the excluded extents helpers
We'll need this to move the caching stuff around. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 04785e912e52..b95d7472b2a9 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2473,6 +2473,9 @@ static inline u64 btrfs_calc_trunc_metadata_size(struct btrfs_fs_info *fs_info,
return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items;
}
+int btrfs_add_excluded_extent(struct btrfs_fs_info *fs_info,
+ u64 start, u64 num_bytes);
+void btrfs_free_excluded_extents(struct btrfs_block_group_cache *cache);
int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
unsigned long count);
void btrfs_cleanup_ref_head_accounting(struct btrfs_fs_info *fs_info,