diff mbox series

btrfs: remove extent_map_tree forward declaration at extent_io.h

Message ID 9298fb200ab3faaaf932d0b166fbefd9e0b917ab.1704815143.git.fdmanana@suse.com (mailing list archive)
State New, archived
Headers show
Series btrfs: remove extent_map_tree forward declaration at extent_io.h | expand

Commit Message

Filipe Manana Jan. 9, 2024, 3:46 p.m. UTC
From: Filipe Manana <fdmanana@suse.com>

There's no need to do a forward declaration of struct extent_map_tree at
extent_io.h, as there are no function prototypes, inline functions or data
structures that refer to struct extent_map_tree.

So remove that forward declaration, which is not needed since commit
477a30ba5f8d ("btrfs: Sink extent_tree arguments in
try_release_extent_mapping").

Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
 fs/btrfs/extent_io.h | 2 --
 1 file changed, 2 deletions(-)

Comments

David Sterba Jan. 10, 2024, 12:51 a.m. UTC | #1
On Tue, Jan 09, 2024 at 03:46:25PM +0000, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
> 
> There's no need to do a forward declaration of struct extent_map_tree at
> extent_io.h, as there are no function prototypes, inline functions or data
> structures that refer to struct extent_map_tree.
> 
> So remove that forward declaration, which is not needed since commit
> 477a30ba5f8d ("btrfs: Sink extent_tree arguments in
> try_release_extent_mapping").
> 
> Signed-off-by: Filipe Manana <fdmanana@suse.com>

Added to misc-next, thanks.
diff mbox series

Patch

diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 46050500529b..39f973778db2 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -205,8 +205,6 @@  static inline void extent_changeset_free(struct extent_changeset *changeset)
 	kfree(changeset);
 }
 
-struct extent_map_tree;
-
 int try_release_extent_mapping(struct page *page, gfp_t mask);
 int try_release_extent_buffer(struct page *page);