From 4e8c4d4ba72cba988a072246ce6de50e2e190c68 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Fri, 2 Aug 2013 19:52:43 -0500 Subject: 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 Signed-off-by: David Sterba Signed-off-by: Chris Mason --- btrfs-image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'btrfs-image.c') 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); -- cgit v1.2.1