diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-06-18 23:09:23 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-02 13:30:53 +0300 |
commit | c2a67a76ec87579a46a16c49fc9997737b7fa844 (patch) | |
tree | f6f97908dea4cf1e26878f82d02ea66da6885e72 /fs/btrfs/ctree.h | |
parent | b338b013e18a28341aaf9e665ac1edc9fae518d1 (diff) | |
download | linux-c2a67a76ec87579a46a16c49fc9997737b7fa844.tar.xz |
btrfs: export block_rsv_use_bytes
We are going to need this to move the metadata reservation stuff to
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/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 8fca40370cf1..b78470fdc226 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -2844,6 +2844,7 @@ int btrfs_block_rsv_refill(struct btrfs_root *root, int btrfs_block_rsv_migrate(struct btrfs_block_rsv *src_rsv, struct btrfs_block_rsv *dst_rsv, u64 num_bytes, bool update_size); +int btrfs_block_rsv_use_bytes(struct btrfs_block_rsv *block_rsv, u64 num_bytes); int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *dest, u64 num_bytes, int min_factor); |