diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-06-18 22:09:18 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-02 12:30:52 +0200 |
commit | d44b72aa12d0a74b67ffabdcab2f64653282dccd (patch) | |
tree | e056841094e9e350bd2a7e8267d809137c969aad /fs/btrfs/space-info.h | |
parent | btrfs: rename do_chunk_alloc to btrfs_chunk_alloc (diff) | |
download | linux-d44b72aa12d0a74b67ffabdcab2f64653282dccd.tar.xz linux-d44b72aa12d0a74b67ffabdcab2f64653282dccd.zip |
btrfs: export space_info_add_*_bytes
Prep work for consolidating all of the space_info code into one file.
We need to export these so multiple files can use them.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/space-info.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/space-info.h b/fs/btrfs/space-info.h index 5f96333c3450..46f15b8c9ffc 100644 --- a/fs/btrfs/space-info.h +++ b/fs/btrfs/space-info.h @@ -75,4 +75,11 @@ static inline bool btrfs_mixed_space_info(struct btrfs_space_info *space_info) (space_info->flags & BTRFS_BLOCK_GROUP_DATA)); } +void btrfs_space_info_add_new_bytes(struct btrfs_fs_info *fs_info, + struct btrfs_space_info *space_info, + u64 num_bytes); +void btrfs_space_info_add_old_bytes(struct btrfs_fs_info *fs_info, + struct btrfs_space_info *space_info, + u64 num_bytes); + #endif /* BTRFS_SPACE_INFO_H */ |