diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index b2620d1f883f..443fcc402114 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -439,6 +439,8 @@ struct btrfs_space_info { | |||
439 | struct list_head list; | 439 | struct list_head list; |
440 | /* Protected by the spinlock 'lock'. */ | 440 | /* Protected by the spinlock 'lock'. */ |
441 | struct list_head ro_bgs; | 441 | struct list_head ro_bgs; |
442 | struct list_head priority_tickets; | ||
443 | struct list_head tickets; | ||
442 | 444 | ||
443 | struct rw_semaphore groups_sem; | 445 | struct rw_semaphore groups_sem; |
444 | /* for block groups in our same type */ | 446 | /* for block groups in our same type */ |
@@ -2624,6 +2626,15 @@ enum btrfs_reserve_flush_enum { | |||
2624 | BTRFS_RESERVE_FLUSH_ALL, | 2626 | BTRFS_RESERVE_FLUSH_ALL, |
2625 | }; | 2627 | }; |
2626 | 2628 | ||
2629 | enum btrfs_flush_state { | ||
2630 | FLUSH_DELAYED_ITEMS_NR = 1, | ||
2631 | FLUSH_DELAYED_ITEMS = 2, | ||
2632 | FLUSH_DELALLOC = 3, | ||
2633 | FLUSH_DELALLOC_WAIT = 4, | ||
2634 | ALLOC_CHUNK = 5, | ||
2635 | COMMIT_TRANS = 6, | ||
2636 | }; | ||
2637 | |||
2627 | int btrfs_check_data_free_space(struct inode *inode, u64 start, u64 len); | 2638 | int btrfs_check_data_free_space(struct inode *inode, u64 start, u64 len); |
2628 | int btrfs_alloc_data_chunk_ondemand(struct inode *inode, u64 bytes); | 2639 | int btrfs_alloc_data_chunk_ondemand(struct inode *inode, u64 bytes); |
2629 | void btrfs_free_reserved_data_space(struct inode *inode, u64 start, u64 len); | 2640 | void btrfs_free_reserved_data_space(struct inode *inode, u64 start, u64 len); |
@@ -2661,8 +2672,8 @@ int btrfs_block_rsv_refill(struct btrfs_root *root, | |||
2661 | struct btrfs_block_rsv *block_rsv, u64 min_reserved, | 2672 | struct btrfs_block_rsv *block_rsv, u64 min_reserved, |
2662 | enum btrfs_reserve_flush_enum flush); | 2673 | enum btrfs_reserve_flush_enum flush); |
2663 | int btrfs_block_rsv_migrate(struct btrfs_block_rsv *src_rsv, | 2674 | int btrfs_block_rsv_migrate(struct btrfs_block_rsv *src_rsv, |
2664 | struct btrfs_block_rsv *dst_rsv, | 2675 | struct btrfs_block_rsv *dst_rsv, u64 num_bytes, |
2665 | u64 num_bytes); | 2676 | int update_size); |
2666 | int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, | 2677 | int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, |
2667 | struct btrfs_block_rsv *dest, u64 num_bytes, | 2678 | struct btrfs_block_rsv *dest, u64 num_bytes, |
2668 | int min_factor); | 2679 | int min_factor); |