summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chunk-recover.c2
-rw-r--r--volumes.c5
-rw-r--r--volumes.h3
3 files changed, 4 insertions, 6 deletions
diff --git a/chunk-recover.c b/chunk-recover.c
index 0dec7d98..7aac8482 100644
--- a/chunk-recover.c
+++ b/chunk-recover.c
@@ -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)
diff --git a/volumes.c b/volumes.c
index d87fd70e..59670c00 100644
--- a/volumes.c
+++ b/volumes.c
@@ -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);
}
diff --git a/volumes.h b/volumes.h
index 18978a8d..699b0bae 100644
--- a/volumes.h
+++ b/volumes.h
@@ -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 *