diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 5b0c79d22c09..8733081d97a3 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -653,6 +653,9 @@ struct btrfs_block_group_cache { | |||
653 | 653 | ||
654 | /* for block groups in the same raid type */ | 654 | /* for block groups in the same raid type */ |
655 | struct list_head list; | 655 | struct list_head list; |
656 | |||
657 | /* usage count */ | ||
658 | atomic_t count; | ||
656 | }; | 659 | }; |
657 | 660 | ||
658 | struct btrfs_leaf_ref_tree { | 661 | struct btrfs_leaf_ref_tree { |
@@ -1706,10 +1709,8 @@ int btrfs_copy_pinned(struct btrfs_root *root, struct extent_io_tree *copy); | |||
1706 | struct btrfs_block_group_cache *btrfs_lookup_block_group(struct | 1709 | struct btrfs_block_group_cache *btrfs_lookup_block_group(struct |
1707 | btrfs_fs_info *info, | 1710 | btrfs_fs_info *info, |
1708 | u64 bytenr); | 1711 | u64 bytenr); |
1709 | struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root, | 1712 | u64 btrfs_find_block_group(struct btrfs_root *root, |
1710 | struct btrfs_block_group_cache | 1713 | u64 search_start, u64 search_hint, int owner); |
1711 | *hint, u64 search_start, | ||
1712 | int data, int owner); | ||
1713 | struct extent_buffer *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, | 1714 | struct extent_buffer *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, |
1714 | struct btrfs_root *root, | 1715 | struct btrfs_root *root, |
1715 | u32 blocksize, u64 parent, | 1716 | u32 blocksize, u64 parent, |
@@ -1770,6 +1771,7 @@ int btrfs_update_extent_ref(struct btrfs_trans_handle *trans, | |||
1770 | u64 owner_objectid); | 1771 | u64 owner_objectid); |
1771 | int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans, | 1772 | int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans, |
1772 | struct btrfs_root *root); | 1773 | struct btrfs_root *root); |
1774 | int btrfs_extent_readonly(struct btrfs_root *root, u64 bytenr); | ||
1773 | int btrfs_free_block_groups(struct btrfs_fs_info *info); | 1775 | int btrfs_free_block_groups(struct btrfs_fs_info *info); |
1774 | int btrfs_read_block_groups(struct btrfs_root *root); | 1776 | int btrfs_read_block_groups(struct btrfs_root *root); |
1775 | int btrfs_make_block_group(struct btrfs_trans_handle *trans, | 1777 | int btrfs_make_block_group(struct btrfs_trans_handle *trans, |
@@ -2019,10 +2021,9 @@ int btrfs_start_delalloc_inodes(struct btrfs_root *root); | |||
2019 | int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end); | 2021 | int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end); |
2020 | int btrfs_writepages(struct address_space *mapping, | 2022 | int btrfs_writepages(struct address_space *mapping, |
2021 | struct writeback_control *wbc); | 2023 | struct writeback_control *wbc); |
2022 | int btrfs_create_subvol_root(struct btrfs_root *new_root, struct dentry *dentry, | 2024 | int btrfs_create_subvol_root(struct btrfs_trans_handle *trans, |
2023 | struct btrfs_trans_handle *trans, u64 new_dirid, | 2025 | struct btrfs_root *new_root, struct dentry *dentry, |
2024 | struct btrfs_block_group_cache *block_group); | 2026 | u64 new_dirid, u64 alloc_hint); |
2025 | |||
2026 | int btrfs_merge_bio_hook(struct page *page, unsigned long offset, | 2027 | int btrfs_merge_bio_hook(struct page *page, unsigned long offset, |
2027 | size_t size, struct bio *bio, unsigned long bio_flags); | 2028 | size_t size, struct bio *bio, unsigned long bio_flags); |
2028 | 2029 | ||