diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 1998f86df08a..0287bd51d87c 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1013,18 +1013,13 @@ static inline void btrfs_memmove(struct btrfs_root *root, | |||
1013 | memmove(dst, src, nr); | 1013 | memmove(dst, src, nr); |
1014 | } | 1014 | } |
1015 | 1015 | ||
1016 | static inline void btrfs_mark_buffer_dirty(struct buffer_head *bh) | ||
1017 | { | ||
1018 | WARN_ON(!atomic_read(&bh->b_count)); | ||
1019 | mark_buffer_dirty(bh); | ||
1020 | } | ||
1021 | |||
1022 | /* helper function to cast into the data area of the leaf. */ | 1016 | /* helper function to cast into the data area of the leaf. */ |
1023 | #define btrfs_item_ptr(leaf, slot, type) \ | 1017 | #define btrfs_item_ptr(leaf, slot, type) \ |
1024 | ((type *)(btrfs_leaf_data(leaf) + \ | 1018 | ((type *)(btrfs_leaf_data(leaf) + \ |
1025 | btrfs_item_offset((leaf)->items + (slot)))) | 1019 | btrfs_item_offset((leaf)->items + (slot)))) |
1026 | 1020 | ||
1027 | /* extent-tree.c */ | 1021 | /* extent-tree.c */ |
1022 | int btrfs_copy_pinned(struct btrfs_root *root, struct radix_tree_root *copy); | ||
1028 | struct btrfs_block_group_cache *btrfs_lookup_block_group(struct | 1023 | struct btrfs_block_group_cache *btrfs_lookup_block_group(struct |
1029 | btrfs_fs_info *info, | 1024 | btrfs_fs_info *info, |
1030 | u64 blocknr); | 1025 | u64 blocknr); |
@@ -1044,8 +1039,9 @@ int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, | |||
1044 | struct buffer_head *buf); | 1039 | struct buffer_head *buf); |
1045 | int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root | 1040 | int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root |
1046 | *root, u64 blocknr, u64 num_blocks, int pin); | 1041 | *root, u64 blocknr, u64 num_blocks, int pin); |
1047 | int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, struct | 1042 | int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, |
1048 | btrfs_root *root); | 1043 | struct btrfs_root *root, |
1044 | struct radix_tree_root *unpin_radix); | ||
1049 | int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, | 1045 | int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, |
1050 | struct btrfs_root *root, | 1046 | struct btrfs_root *root, |
1051 | u64 blocknr, u64 num_blocks); | 1047 | u64 blocknr, u64 num_blocks); |