path: root/ctree.h
diff options
authorNikolay Borisov <>2018-08-16 11:13:05 +0300
committerDavid Sterba <>2018-10-23 14:48:41 +0200
commitd8a5e756be6beb47d315165610f68f18ae21fe39 (patch)
tree4193ef6e2e8170df8ce3e396ab149d245c02638f /ctree.h
parentc6039704c580aeac32d26d858f402be537cbe819 (diff)
btrfs-progs: Make btrfs_write_dirty_block_groups take only trans argument
The root argument is used only to get a reference to the fs_info, this can be achieved with the transaction handle being passed so use that. This is in preparation for moving this function in the main transaction commit routine. No functional changes. Signed-off-by: Nikolay Borisov <> Signed-off-by: David Sterba <>
Diffstat (limited to 'ctree.h')
1 files changed, 1 insertions, 2 deletions
diff --git a/ctree.h b/ctree.h
index 5242595f..75675ef3 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2523,8 +2523,7 @@ int btrfs_update_extent_ref(struct btrfs_trans_handle *trans,
u64 orig_parent, u64 parent,
u64 root_objectid, u64 ref_generation,
u64 owner_objectid);
-int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans,
- struct btrfs_root *root);
+int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans);
int btrfs_free_block_groups(struct btrfs_fs_info *info);
int btrfs_read_block_groups(struct btrfs_root *root);
struct btrfs_block_group_cache *