Lines Matching refs:tree

133 struct btrfs_inode *extent_io_tree_to_inode(struct extent_io_tree *tree);
134 const struct btrfs_inode *extent_io_tree_to_inode_const(const struct extent_io_tree *tree);
135 const struct btrfs_fs_info *extent_io_tree_to_fs_info(const struct extent_io_tree *tree);
138 struct extent_io_tree *tree, unsigned int owner);
139 void extent_io_tree_release(struct extent_io_tree *tree);
140 int __lock_extent(struct extent_io_tree *tree, u64 start, u64 end, u32 bits,
142 bool __try_lock_extent(struct extent_io_tree *tree, u64 start, u64 end, u32 bits,
145 static inline int lock_extent(struct extent_io_tree *tree, u64 start, u64 end, in lock_extent() argument
148 return __lock_extent(tree, start, end, EXTENT_LOCKED, cached); in lock_extent()
151 static inline bool try_lock_extent(struct extent_io_tree *tree, u64 start, in try_lock_extent() argument
154 return __try_lock_extent(tree, start, end, EXTENT_LOCKED, cached); in try_lock_extent()
160 u64 count_range_bits(struct extent_io_tree *tree,
166 bool test_range_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bit,
168 bool test_range_bit_exists(struct extent_io_tree *tree, u64 start, u64 end, u32 bit);
169 int clear_record_extent_bits(struct extent_io_tree *tree, u64 start, u64 end,
171 int __clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
175 static inline int clear_extent_bit(struct extent_io_tree *tree, u64 start, in clear_extent_bit() argument
179 return __clear_extent_bit(tree, start, end, bits, cached, NULL); in clear_extent_bit()
182 static inline int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end, in unlock_extent() argument
185 return __clear_extent_bit(tree, start, end, EXTENT_LOCKED, cached, NULL); in unlock_extent()
188 static inline int clear_extent_bits(struct extent_io_tree *tree, u64 start, in clear_extent_bits() argument
191 return clear_extent_bit(tree, start, end, bits, NULL); in clear_extent_bits()
194 int set_record_extent_bits(struct extent_io_tree *tree, u64 start, u64 end,
196 int set_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
199 static inline int clear_extent_uptodate(struct extent_io_tree *tree, u64 start, in clear_extent_uptodate() argument
202 return __clear_extent_bit(tree, start, end, EXTENT_UPTODATE, in clear_extent_uptodate()
206 static inline int clear_extent_dirty(struct extent_io_tree *tree, u64 start, in clear_extent_dirty() argument
209 return clear_extent_bit(tree, start, end, in clear_extent_dirty()
214 int convert_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
218 bool find_first_extent_bit(struct extent_io_tree *tree, u64 start,
221 void find_first_clear_extent_bit(struct extent_io_tree *tree, u64 start,
223 int find_contiguous_extent_bit(struct extent_io_tree *tree, u64 start,
225 bool btrfs_find_delalloc_range(struct extent_io_tree *tree, u64 *start,
228 static inline int lock_dio_extent(struct extent_io_tree *tree, u64 start, in lock_dio_extent() argument
231 return __lock_extent(tree, start, end, EXTENT_DIO_LOCKED, cached); in lock_dio_extent()
234 static inline bool try_lock_dio_extent(struct extent_io_tree *tree, u64 start, in try_lock_dio_extent() argument
237 return __try_lock_extent(tree, start, end, EXTENT_DIO_LOCKED, cached); in try_lock_dio_extent()
240 static inline int unlock_dio_extent(struct extent_io_tree *tree, u64 start, in unlock_dio_extent() argument
243 return __clear_extent_bit(tree, start, end, EXTENT_DIO_LOCKED, cached, NULL); in unlock_dio_extent()