path: root/disk-io.h
diff options
authorNikolay Borisov <>2018-05-28 09:36:45 +0300
committerDavid Sterba <>2018-06-07 16:37:37 +0200
commita93d51ede72899694867d234b9f10cfee240974d (patch)
treefa14e15f0b5b0ca1704ab1360310da1860af8e4c /disk-io.h
parentebbcc81878bbcaf02df5e4acb7c4210489a946c1 (diff)
btrfs-progs: Remove unused argument from clean_tree_block
This function actually uses only the extent_buffer arg but takes 3 arguments. Furthermore, it's current interface doesn't even mirror the kernel counterpart. Just remove the extra arguments. Signed-off-by: Nikolay Borisov <> Reviewed-by: Su Yue <> Signed-off-by: David Sterba <>
Diffstat (limited to 'disk-io.h')
1 files changed, 1 insertions, 2 deletions
diff --git a/disk-io.h b/disk-io.h
index c4496155..36fb68cd 100644
--- a/disk-io.h
+++ b/disk-io.h
@@ -131,8 +131,7 @@ struct extent_buffer* btrfs_find_create_tree_block(
void btrfs_setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info,
u64 objectid);
-int clean_tree_block(struct btrfs_trans_handle *trans,
- struct btrfs_root *root, struct extent_buffer *buf);
+int clean_tree_block(struct extent_buffer *buf);
void btrfs_free_fs_info(struct btrfs_fs_info *fs_info);
struct btrfs_fs_info *btrfs_new_fs_info(int writable, u64 sb_bytenr);