btrfs-progs: remove unused argument from btrfs_add_system_chunk
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
aee9207ece
commit
bcafc565f3
|
@ -1309,7 +1309,7 @@ static int rebuild_sys_array(struct recover_control *rc,
|
|||
key.type = BTRFS_CHUNK_ITEM_KEY;
|
||||
key.offset = chunk_rec->offset;
|
||||
|
||||
ret = btrfs_add_system_chunk(NULL, root, &key, chunk,
|
||||
ret = btrfs_add_system_chunk(root, &key, chunk,
|
||||
btrfs_chunk_item_size(num_stripes));
|
||||
free(chunk);
|
||||
if (ret)
|
||||
|
|
|
@ -684,8 +684,7 @@ out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
int btrfs_add_system_chunk(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root,
|
||||
int btrfs_add_system_chunk(struct btrfs_root *root,
|
||||
struct btrfs_key *key,
|
||||
struct btrfs_chunk *chunk, int item_size)
|
||||
{
|
||||
|
@ -1078,7 +1077,7 @@ again:
|
|||
BUG_ON(ret);
|
||||
|
||||
if (type & BTRFS_BLOCK_GROUP_SYSTEM) {
|
||||
ret = btrfs_add_system_chunk(trans, chunk_root, &key,
|
||||
ret = btrfs_add_system_chunk(chunk_root, &key,
|
||||
chunk, btrfs_chunk_item_size(num_stripes));
|
||||
BUG_ON(ret);
|
||||
}
|
||||
|
|
|
@ -230,8 +230,7 @@ int btrfs_scan_one_device(int fd, const char *path,
|
|||
u64 *total_devs, u64 super_offset, unsigned sbflags);
|
||||
int btrfs_num_copies(struct btrfs_mapping_tree *map_tree, u64 logical, u64 len);
|
||||
struct list_head *btrfs_scanned_uuids(void);
|
||||
int btrfs_add_system_chunk(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root, struct btrfs_key *key,
|
||||
int btrfs_add_system_chunk(struct btrfs_root *root, struct btrfs_key *key,
|
||||
struct btrfs_chunk *chunk, int item_size);
|
||||
int btrfs_chunk_readonly(struct btrfs_root *root, u64 chunk_offset);
|
||||
struct btrfs_device *
|
||||
|
|
Loading…
Reference in New Issue