summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 18:19:31 +0300
committerDavid Sterba <dsterba@suse.com>2019-04-29 20:02:34 +0300
commitaf60ce2b9354e6aeea36965f10be3d31f1710582 (patch)
tree33f24347202fc55b29e7380e57982027140ce763
parent4806bd886aa0f9d23072711a5d9c84ac6b6fcadf (diff)
downloadlinux-af60ce2b9354e6aeea36965f10be3d31f1710582.tar.xz
btrfs: tree-checker: get fs_info from eb in check_block_group_item
We can read fs_info from extent buffer and can drop it from the parameters. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/tree-checker.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c
index b7201f4a12a6..9513ffd73453 100644
--- a/fs/btrfs/tree-checker.c
+++ b/fs/btrfs/tree-checker.c
@@ -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;
@@ -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);