summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-09 17:42:02 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:47 +0100
commitbcafc565f3d4b9190124a0462707ad6d9796be9a (patch)
treee851f67ea982bae0351bb2fbbe76f7f22ec523d4 /volumes.c
parentaee9207ece3050c8929ee6a0f8dbe314c8f9a3a1 (diff)
btrfs-progs: remove unused argument from btrfs_add_system_chunk
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/volumes.c b/volumes.c
index d87fd70..59670c0 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);
}