diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 2e04c9d6f21d..83a6a931af09 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -2626,6 +2626,15 @@ enum btrfs_reserve_flush_enum { | |||
2626 | BTRFS_RESERVE_FLUSH_ALL, | 2626 | BTRFS_RESERVE_FLUSH_ALL, |
2627 | }; | 2627 | }; |
2628 | 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 | |||
2629 | 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); |
2630 | int btrfs_alloc_data_chunk_ondemand(struct inode *inode, u64 bytes); | 2639 | int btrfs_alloc_data_chunk_ondemand(struct inode *inode, u64 bytes); |
2631 | 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); |