btrfs: get fs_info from eb in btrfs_check_node
[sfrench/cifs-2.6.git] / fs / btrfs / disk-io.c
index 5168128010812846f48eb65d9f83df9e1a496acd..36c44ddadd2d33cccd5db235fef56ee8076b8610 100644 (file)
@@ -657,7 +657,7 @@ static int btree_readpage_end_io_hook(struct btrfs_io_bio *io_bio,
                ret = -EIO;
        }
 
                ret = -EIO;
        }
 
-       if (found_level > 0 && btrfs_check_node(fs_info, eb))
+       if (found_level > 0 && btrfs_check_node(eb))
                ret = -EIO;
 
        if (!ret)
                ret = -EIO;
 
        if (!ret)