btrfs-progs: check: remove unused argument from fix_item_offset

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-02-09 17:42:02 +01:00
parent 2cb94a9123
commit 9f3091ba7c
1 changed files with 2 additions and 4 deletions

View File

@ -5603,9 +5603,7 @@ static int delete_bogus_item(struct btrfs_root *root,
return 0;
}
static int fix_item_offset(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct btrfs_path *path)
static int fix_item_offset(struct btrfs_root *root, struct btrfs_path *path)
{
struct extent_buffer *buf;
int i;
@ -5730,7 +5728,7 @@ static int try_to_fix_bad_block(struct btrfs_root *root,
if (status == BTRFS_TREE_BLOCK_BAD_KEY_ORDER)
ret = fix_key_order(search_root, &path);
else if (status == BTRFS_TREE_BLOCK_INVALID_OFFSETS)
ret = fix_item_offset(trans, search_root, &path);
ret = fix_item_offset(search_root, &path);
if (ret) {
btrfs_commit_transaction(trans, search_root);
break;