diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-06-18 23:09:25 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-02 13:30:53 +0300 |
commit | 0d9764f6d0fb9dd4d4b773b481f259c0567870c2 (patch) | |
tree | 0961e6ea42d1c7b3eb462739f643ea440df09fec /fs/btrfs/space-info.h | |
parent | 5da6afeb32e97f956aa3d599b7f94ceb36fcf854 (diff) | |
download | linux-0d9764f6d0fb9dd4d4b773b481f259c0567870c2.tar.xz |
btrfs: move reserve_metadata_bytes and supporting code to space-info.c
This moves all of the metadata reservation code into space-info.c.
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/space-info.h b/fs/btrfs/space-info.h index d758959d19d5..620d390cf6d2 100644 --- a/fs/btrfs/space-info.h +++ b/fs/btrfs/space-info.h @@ -129,5 +129,9 @@ int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, struct btrfs_space_info *info, u64 bytes, int dump_block_groups); +int btrfs_reserve_metadata_bytes(struct btrfs_root *root, + struct btrfs_block_rsv *block_rsv, + u64 orig_bytes, + enum btrfs_reserve_flush_enum flush); #endif /* BTRFS_SPACE_INFO_H */ |