* being cached, read from scrub, or have multiple
* parents (shared tree blocks).
*/
- if (btrfs_verify_level_key(fs_info, tmp,
+ if (btrfs_verify_level_key(tmp,
parent_level - 1, &first_key, gen)) {
free_extent_buffer(tmp);
return -EUCLEAN;
return ret;
}
-int btrfs_verify_level_key(struct btrfs_fs_info *fs_info,
- struct extent_buffer *eb, int level,
+int btrfs_verify_level_key(struct extent_buffer *eb, int level,
struct btrfs_key *first_key, u64 parent_transid)
{
+ struct btrfs_fs_info *fs_info = eb->fs_info;
int found_level;
struct btrfs_key found_key;
int ret;
if (verify_parent_transid(io_tree, eb,
parent_transid, 0))
ret = -EIO;
- else if (btrfs_verify_level_key(fs_info, eb, level,
+ else if (btrfs_verify_level_key(eb, level,
first_key, parent_transid))
ret = -EUCLEAN;
else
struct btrfs_device;
struct btrfs_fs_devices;
-int btrfs_verify_level_key(struct btrfs_fs_info *fs_info,
- struct extent_buffer *eb, int level,
+int btrfs_verify_level_key(struct extent_buffer *eb, int level,
struct btrfs_key *first_key, u64 parent_transid);
struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr,
u64 parent_transid, int level,