diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-06-18 22:09:22 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-02 12:30:52 +0200 |
commit | b338b013e18a28341aaf9e665ac1edc9fae518d1 (patch) | |
tree | 8102982abf75c668772e9c3873df8743d4a71f8b /fs/btrfs/space-info.h | |
parent | btrfs: move the space info update macro to space-info.h (diff) | |
download | linux-b338b013e18a28341aaf9e665ac1edc9fae518d1.tar.xz linux-b338b013e18a28341aaf9e665ac1edc9fae518d1.zip |
btrfs: move btrfs_space_info_add_*_bytes to space-info.c
Now that we've moved all the pre-requisite stuff, move these two
functions.
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/btrfs/space-info.h b/fs/btrfs/space-info.h index 702e431580c6..7df09731a3fa 100644 --- a/fs/btrfs/space-info.h +++ b/fs/btrfs/space-info.h @@ -69,6 +69,14 @@ struct btrfs_space_info { struct kobject *block_group_kobjs[BTRFS_NR_RAID_TYPES]; }; +struct reserve_ticket { + u64 orig_bytes; + u64 bytes; + int error; + struct list_head list; + wait_queue_head_t wait; +}; + static inline bool btrfs_mixed_space_info(struct btrfs_space_info *space_info) { return ((space_info->flags & BTRFS_BLOCK_GROUP_METADATA) && |