eb->len = key.offset;
/* Write the data */
- ret = write_and_map_eb(trans, root, eb);
+ ret = write_and_map_eb(root, eb);
free(eb);
if (ret < 0)
break;
return ret;
}
-int write_and_map_eb(struct btrfs_trans_handle *trans,
- struct btrfs_root *root,
- struct extent_buffer *eb)
+int write_and_map_eb(struct btrfs_root *root, struct extent_buffer *eb)
{
int ret;
int dev_nr;
btrfs_set_header_flag(eb, BTRFS_HEADER_FLAG_WRITTEN);
csum_tree_block(root, eb, 0);
- return write_and_map_eb(trans, root, eb);
+ return write_and_map_eb(root, eb);
}
void btrfs_setup_root(u32 nodesize, u32 leafsize, u32 sectorsize,
int write_tree_block(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct extent_buffer *eb);
-int write_and_map_eb(struct btrfs_trans_handle *trans, struct btrfs_root *root,
- struct extent_buffer *eb);
+int write_and_map_eb(struct btrfs_root *root, struct extent_buffer *eb);
/* raid56.c */
void raid6_gen_syndrome(int disks, size_t bytes, void **ptrs);
if (ret)
goto end;
- ret = write_and_map_eb(trans, root, eb);
+ ret = write_and_map_eb(root, eb);
if (ret) {
error("failed to write %s", path_name);
goto end;