mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 18:56:24 +00:00
btrfs: move extent io tree unrelated prototypes to their appropriate header
These prototypes have nothing to do with the extent_io_tree helpers, move them to their appropriate header. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
e63b81aef2
commit
d6f65c27f5
@ -248,17 +248,9 @@ void find_first_clear_extent_bit(struct extent_io_tree *tree, u64 start,
|
|||||||
u64 *start_ret, u64 *end_ret, u32 bits);
|
u64 *start_ret, u64 *end_ret, u32 bits);
|
||||||
int find_contiguous_extent_bit(struct extent_io_tree *tree, u64 start,
|
int find_contiguous_extent_bit(struct extent_io_tree *tree, u64 start,
|
||||||
u64 *start_ret, u64 *end_ret, u32 bits);
|
u64 *start_ret, u64 *end_ret, u32 bits);
|
||||||
int extent_invalidate_folio(struct extent_io_tree *tree,
|
|
||||||
struct folio *folio, size_t offset);
|
|
||||||
bool btrfs_find_delalloc_range(struct extent_io_tree *tree, u64 *start,
|
bool btrfs_find_delalloc_range(struct extent_io_tree *tree, u64 *start,
|
||||||
u64 *end, u64 max_bytes,
|
u64 *end, u64 max_bytes,
|
||||||
struct extent_state **cached_state);
|
struct extent_state **cached_state);
|
||||||
void wait_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bits);
|
void wait_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bits);
|
||||||
|
|
||||||
/* This should be reworked in the future and put elsewhere. */
|
|
||||||
void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start,
|
|
||||||
u64 end);
|
|
||||||
int btrfs_clean_io_failure(struct btrfs_inode *inode, u64 start,
|
|
||||||
struct page *page, unsigned int pg_offset);
|
|
||||||
|
|
||||||
#endif /* BTRFS_EXTENT_IO_TREE_H */
|
#endif /* BTRFS_EXTENT_IO_TREE_H */
|
||||||
|
@ -242,6 +242,8 @@ void extent_range_redirty_for_io(struct inode *inode, u64 start, u64 end);
|
|||||||
void extent_clear_unlock_delalloc(struct btrfs_inode *inode, u64 start, u64 end,
|
void extent_clear_unlock_delalloc(struct btrfs_inode *inode, u64 start, u64 end,
|
||||||
struct page *locked_page,
|
struct page *locked_page,
|
||||||
u32 bits_to_clear, unsigned long page_ops);
|
u32 bits_to_clear, unsigned long page_ops);
|
||||||
|
int extent_invalidate_folio(struct extent_io_tree *tree,
|
||||||
|
struct folio *folio, size_t offset);
|
||||||
|
|
||||||
int btrfs_alloc_page_array(unsigned int nr_pages, struct page **page_array);
|
int btrfs_alloc_page_array(unsigned int nr_pages, struct page **page_array);
|
||||||
|
|
||||||
@ -273,6 +275,9 @@ struct io_failure_record {
|
|||||||
int btrfs_repair_one_sector(struct inode *inode, struct btrfs_bio *failed_bbio,
|
int btrfs_repair_one_sector(struct inode *inode, struct btrfs_bio *failed_bbio,
|
||||||
u32 bio_offset, struct page *page, unsigned int pgoff,
|
u32 bio_offset, struct page *page, unsigned int pgoff,
|
||||||
submit_bio_hook_t *submit_bio_hook);
|
submit_bio_hook_t *submit_bio_hook);
|
||||||
|
void btrfs_free_io_failure_record(struct btrfs_inode *inode, u64 start, u64 end);
|
||||||
|
int btrfs_clean_io_failure(struct btrfs_inode *inode, u64 start,
|
||||||
|
struct page *page, unsigned int pg_offset);
|
||||||
|
|
||||||
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
|
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
|
||||||
bool find_lock_delalloc_range(struct inode *inode,
|
bool find_lock_delalloc_range(struct inode *inode,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user