diff mbox series

btrfs: remove duplicate btrfs_clear_buffer_dirty() prototype from disk-io.h

Message ID 603adbf6d55ba4f872bdd7be383fdfb8ecd7bddc.1697196979.git.fdmanana@suse.com (mailing list archive)
State New, archived
Headers show
Series btrfs: remove duplicate btrfs_clear_buffer_dirty() prototype from disk-io.h | expand

Commit Message

Filipe Manana Oct. 13, 2023, 11:38 a.m. UTC
From: Filipe Manana <fdmanana@suse.com>

The prototype for btrfs_clear_buffer_dirty() is declared in both disk-io.h
and extent_io.h, but the function is defined at extent_io.c. So remove the
prototype declaration from disk-io.h.

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

Comments

David Sterba Oct. 13, 2023, 3:44 p.m. UTC | #1
On Fri, Oct 13, 2023 at 12:38:32PM +0100, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
> 
> The prototype for btrfs_clear_buffer_dirty() is declared in both disk-io.h
> and extent_io.h, but the function is defined at extent_io.c. So remove the
> prototype declaration from disk-io.h.
> 
> Signed-off-by: Filipe Manana <fdmanana@suse.com>

Added to misc-next, thanks.
diff mbox series

Patch

diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h
index 50dab8f639dc..e589359e6a68 100644
--- a/fs/btrfs/disk-io.h
+++ b/fs/btrfs/disk-io.h
@@ -37,8 +37,6 @@  struct extent_buffer *btrfs_find_create_tree_block(
 						struct btrfs_fs_info *fs_info,
 						u64 bytenr, u64 owner_root,
 						int level);
-void btrfs_clear_buffer_dirty(struct btrfs_trans_handle *trans,
-			      struct extent_buffer *buf);
 void btrfs_clear_oneshot_options(struct btrfs_fs_info *fs_info);
 int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info);
 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info,