btrfs-progs: remove unused argument from write_and_map_eb

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-02-09 17:42:02 +01:00
parent 9bdbe12644
commit b53af22c24
4 changed files with 5 additions and 8 deletions

View File

@ -302,7 +302,7 @@ static int migrate_one_reserved_range(struct btrfs_trans_handle *trans,
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;

View File

@ -426,9 +426,7 @@ err:
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;
@ -475,7 +473,7 @@ int write_tree_block(struct btrfs_trans_handle *trans,
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,

View File

@ -201,8 +201,7 @@ int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid);
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);

View File

@ -754,7 +754,7 @@ again:
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;