btrfs-progs: remove unused parameter from truncate_one_csum

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2017-02-09 17:32:05 +01:00
parent 497f974294
commit 175b972c6b
1 changed files with 2 additions and 4 deletions

View File

@ -336,8 +336,7 @@ fail:
* This calls btrfs_truncate_item with the correct args based on the * This calls btrfs_truncate_item with the correct args based on the
* overlap, and fixes up the key as required. * overlap, and fixes up the key as required.
*/ */
static noinline int truncate_one_csum(struct btrfs_trans_handle *trans, static noinline int truncate_one_csum(struct btrfs_root *root,
struct btrfs_root *root,
struct btrfs_path *path, struct btrfs_path *path,
struct btrfs_key *key, struct btrfs_key *key,
u64 bytenr, u64 len) u64 bytenr, u64 len)
@ -489,8 +488,7 @@ int btrfs_del_csums(struct btrfs_trans_handle *trans,
key.offset = end_byte - 1; key.offset = end_byte - 1;
} else { } else {
ret = truncate_one_csum(trans, root, path, ret = truncate_one_csum(root, path, &key, bytenr, len);
&key, bytenr, len);
BUG_ON(ret); BUG_ON(ret);
} }
btrfs_release_path(path); btrfs_release_path(path);