diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-06-18 22:09:24 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-02 12:30:53 +0200 |
commit | 5da6afeb32e97f956aa3d599b7f94ceb36fcf854 (patch) | |
tree | 6a309ac1025e925c2b5700784c62d4e5a8ce342a /fs/btrfs/space-info.h | |
parent | btrfs: export block_rsv_use_bytes (diff) | |
download | linux-5da6afeb32e97f956aa3d599b7f94ceb36fcf854.tar.xz linux-5da6afeb32e97f956aa3d599b7f94ceb36fcf854.zip |
btrfs: move dump_space_info to space-info.c
We'll need this exported so we can use it in all the various was we need
to use it. This is prep work to move reserve_metadata_bytes.
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 'fs/btrfs/space-info.h')
-rw-r--r-- | fs/btrfs/space-info.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/space-info.h b/fs/btrfs/space-info.h index 7df09731a3fa..d758959d19d5 100644 --- a/fs/btrfs/space-info.h +++ b/fs/btrfs/space-info.h @@ -126,5 +126,8 @@ int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 bytes, enum btrfs_reserve_flush_enum flush, bool system_chunk); +void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, + struct btrfs_space_info *info, u64 bytes, + int dump_block_groups); #endif /* BTRFS_SPACE_INFO_H */ |