Skip to content

Commit

Permalink
btrfs: tree-checker: get fs_info from eb in check_block_group_item
Browse files Browse the repository at this point in the history
We can read fs_info from extent buffer and can drop it from the
parameters.

Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
David Sterba committed Apr 29, 2019
1 parent 4806bd8 commit af60ce2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/btrfs/tree-checker.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ static void block_group_err(const struct extent_buffer *eb, int slot,
va_end(args);
}

static int check_block_group_item(struct btrfs_fs_info *fs_info,
struct extent_buffer *leaf,
static int check_block_group_item(struct extent_buffer *leaf,
struct btrfs_key *key, int slot)
{
struct btrfs_block_group_item bgi;
Expand Down Expand Up @@ -792,7 +791,7 @@ static int check_leaf_item(struct btrfs_fs_info *fs_info,
ret = check_dir_item(leaf, key, slot);
break;
case BTRFS_BLOCK_GROUP_ITEM_KEY:
ret = check_block_group_item(fs_info, leaf, key, slot);
ret = check_block_group_item(leaf, key, slot);
break;
case BTRFS_CHUNK_ITEM_KEY:
chunk = btrfs_item_ptr(leaf, slot, struct btrfs_chunk);
Expand Down

0 comments on commit af60ce2

Please sign in to comment.