summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent-io-tree.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2019-09-23 10:05:20 -0400
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:47 +0100
commit083e75e7e6a9e24b041ed9cc668dc7a500e31919 (patch)
tree471b2af8aab7406a29c6b70c9cbd946a3685f119 /fs/btrfs/extent-io-tree.h
parent9c7d3a548331e72ba3613eaa5c8a74839462b764 (diff)
btrfs: export find_delalloc_range
This utilizes internal stuff to the extent_io_tree, so we need to export it before we move it. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-io-tree.h')
-rw-r--r--fs/btrfs/extent-io-tree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/extent-io-tree.h b/fs/btrfs/extent-io-tree.h
index 83f0f2438214..3de980c44d5e 100644
--- a/fs/btrfs/extent-io-tree.h
+++ b/fs/btrfs/extent-io-tree.h
@@ -223,5 +223,8 @@ void find_first_clear_extent_bit(struct extent_io_tree *tree, u64 start,
u64 *start_ret, u64 *end_ret, unsigned bits);
int extent_invalidatepage(struct extent_io_tree *tree,
struct page *page, unsigned long offset);
+bool btrfs_find_delalloc_range(struct extent_io_tree *tree, u64 *start,
+ u64 *end, u64 max_bytes,
+ struct extent_state **cached_state);
#endif /* BTRFS_EXTENT_IO_TREE_H */