btrfs: get fs_info from eb in btrfs_check_leaf_full
[sfrench/cifs-2.6.git] / fs / btrfs / disk-io.c
index 0b2b75a7efbdbb8bbb97a6f300b531e91e181b81..3c488fc493bd5abe870229bc3445cc43b248f1b5 100644 (file)
@@ -652,7 +652,7 @@ static int btree_readpage_end_io_hook(struct btrfs_io_bio *io_bio,
         * that we don't try and read the other copies of this block, just
         * return -EIO.
         */
-       if (found_level == 0 && btrfs_check_leaf_full(fs_info, eb)) {
+       if (found_level == 0 && btrfs_check_leaf_full(eb)) {
                set_bit(EXTENT_BUFFER_CORRUPT, &eb->bflags);
                ret = -EIO;
        }