summaryrefslogtreecommitdiff
path: root/btrfs-image.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-08-02 19:52:43 -0500
committerDavid Sterba <dsterba@suse.cz>2013-09-03 19:40:46 +0200
commit4e8c4d4ba72cba988a072246ce6de50e2e190c68 (patch)
tree4ced09fdcf5aaf89db28ce7c04554ec89adac388 /btrfs-image.c
parent9db49418b367ede03954d5a42c92e8dfcc10f7ad (diff)
downloadbtrfs-progs-4e8c4d4ba72cba988a072246ce6de50e2e190c68.tar.gz
btrfs-progs: drop unused parameter from btrfs_release_path
Port of commit b3b4aa7 to userspace. parameter tree root it's not used since commit 5f39d397dfbe140a14edecd4e73c34ce23c4f9ee ("Btrfs: Create extent_buffer interface for large blocksizes") This gets userspace a tad closer to kernelspace by removing this unused parameter that was all over the codebase... Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'btrfs-image.c')
-rw-r--r--btrfs-image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/btrfs-image.c b/btrfs-image.c
index 39702be..3ea3730 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -1133,7 +1133,7 @@ static int copy_space_cache(struct btrfs_root *root,
if (ret) {
fprintf(stderr, "Error adding space cache blocks %d\n",
ret);
- btrfs_release_path(root, path);
+ btrfs_release_path(path);
return ret;
}
path->slots[0]++;
@@ -1238,7 +1238,7 @@ static int copy_from_extent_tree(struct metadump_struct *metadump,
bytenr += num_bytes;
}
- btrfs_release_path(extent_root, path);
+ btrfs_release_path(path);
return ret;
}
@@ -2385,7 +2385,7 @@ static int update_disk_super_on_device(struct btrfs_fs_info *info,
read_extent_buffer(leaf, dev_uuid, (unsigned long)btrfs_device_uuid(dev_item), BTRFS_UUID_SIZE);
read_extent_buffer(leaf, fs_uuid, (unsigned long)btrfs_device_fsid(dev_item), BTRFS_UUID_SIZE);
- btrfs_release_path(info->chunk_root, &path);
+ btrfs_release_path(&path);
printk("update disk super on %s devid=%llu\n", other_dev, devid);