summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-09 17:42:02 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:48 +0100
commit9f3091ba7ccf3cbbab2d69f422f29f166f022ad9 (patch)
treebcc025dcb1b578a2a4b26daa2f968dd3d0c920e5
parent2cb94a91230fdb8cac7763a7e3b79eb2efc8b6fc (diff)
btrfs-progs: check: remove unused argument from fix_item_offset
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--cmds-check.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmds-check.c b/cmds-check.c
index ecc1d644..688f3b6d 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -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;