summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/space-info.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2019-06-18 16:09:20 -0400
committerDavid Sterba <dsterba@suse.com>2019-07-02 12:30:52 +0200
commit41783ef24d56ce45452db7c413df9a3bdcc8d651 (patch)
treeeb1b54cdaf8e34ffb528e4b96386813f77b8b44b /fs/btrfs/space-info.h
parent280c290881bc048bd5dbe02796173f55ca86e697 (diff)
downloadlinux-41783ef24d56ce45452db7c413df9a3bdcc8d651.tar.bz2
btrfs: move and export can_overcommit
This is the first piece of moving the space reservation code 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/space-info.h')
-rw-r--r--fs/btrfs/space-info.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/space-info.h b/fs/btrfs/space-info.h
index d1264d9223f2..fcec5286e0cb 100644
--- a/fs/btrfs/space-info.h
+++ b/fs/btrfs/space-info.h
@@ -91,5 +91,9 @@ struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info,
u64 btrfs_space_info_used(struct btrfs_space_info *s_info,
bool may_use_included);
void btrfs_clear_space_info_full(struct btrfs_fs_info *info);
+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);
#endif /* BTRFS_SPACE_INFO_H */