btrfs-progs: corrupt-block: remove unused argument from corrupt_extent
authorDavid Sterba <dsterba@suse.com>
Thu, 9 Feb 2017 16:42:02 +0000 (17:42 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:48 +0000 (13:00 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-corrupt-block.c

index 94259aa..71b4d77 100644 (file)
@@ -179,7 +179,7 @@ static int corrupt_keys_in_block(struct btrfs_root *root, u64 bytenr)
 }
 
 static int corrupt_extent(struct btrfs_trans_handle *trans,
-                         struct btrfs_root *root, u64 bytenr, u64 copy)
+                         struct btrfs_root *root, u64 bytenr)
 {
        struct btrfs_key key;
        struct extent_buffer *leaf;
@@ -271,7 +271,7 @@ static void btrfs_corrupt_extent_leaf(struct btrfs_trans_handle *trans,
 
        btrfs_item_key_to_cpu(eb, &key, victim);
        objectid = key.objectid;
-       corrupt_extent(trans, root, objectid, 1);
+       corrupt_extent(trans, root, objectid);
 }
 
 static void btrfs_corrupt_extent_tree(struct btrfs_trans_handle *trans,
@@ -1226,7 +1226,7 @@ int main(int argc, char **argv)
                if (logical == (u64)-1)
                        print_usage(1);
                trans = btrfs_start_transaction(root, 1);
-               ret = corrupt_extent (trans, root, logical, 0);
+               ret = corrupt_extent(trans, root, logical);
                btrfs_commit_transaction(trans, root);
                goto out_close;
        }