提交 af60ce2b 编写于 作者: D David Sterba

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: NDavid Sterba <dsterba@suse.com>
上级 4806bd88
...@@ -378,8 +378,7 @@ static void block_group_err(const struct extent_buffer *eb, int slot, ...@@ -378,8 +378,7 @@ static void block_group_err(const struct extent_buffer *eb, int slot,
va_end(args); va_end(args);
} }
static int check_block_group_item(struct btrfs_fs_info *fs_info, static int check_block_group_item(struct extent_buffer *leaf,
struct extent_buffer *leaf,
struct btrfs_key *key, int slot) struct btrfs_key *key, int slot)
{ {
struct btrfs_block_group_item bgi; struct btrfs_block_group_item bgi;
...@@ -792,7 +791,7 @@ static int check_leaf_item(struct btrfs_fs_info *fs_info, ...@@ -792,7 +791,7 @@ static int check_leaf_item(struct btrfs_fs_info *fs_info,
ret = check_dir_item(leaf, key, slot); ret = check_dir_item(leaf, key, slot);
break; break;
case BTRFS_BLOCK_GROUP_ITEM_KEY: 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; break;
case BTRFS_CHUNK_ITEM_KEY: case BTRFS_CHUNK_ITEM_KEY:
chunk = btrfs_item_ptr(leaf, slot, struct btrfs_chunk); chunk = btrfs_item_ptr(leaf, slot, struct btrfs_chunk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册