btrfs-progs: Remove unused function arg in delete_extent_records
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Fri, 3 Feb 2017 16:15:32 +0000 (10:15 -0600)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:47 +0000 (13:00 +0100)
new_len is not used in delete_extent_records().

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c

index 6586f5a..7a1563b 100644 (file)
@@ -7968,7 +7968,7 @@ out:
 static int delete_extent_records(struct btrfs_trans_handle *trans,
                                 struct btrfs_root *root,
                                 struct btrfs_path *path,
-                                u64 bytenr, u64 new_len)
+                                u64 bytenr)
 {
        struct btrfs_key key;
        struct btrfs_key found_key;
@@ -8974,7 +8974,7 @@ static int fixup_extent_refs(struct btrfs_fs_info *info,
 
        /* step two, delete all the existing records */
        ret = delete_extent_records(trans, info->extent_root, &path,
-                                   rec->start, rec->max_size);
+                                   rec->start);
 
        if (ret < 0)
                goto out;