btrfs-progs: remove unused argument from write_and_map_eb
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
9bdbe12644
commit
b53af22c24
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue