diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index fa80de56340f..9d2c932b012e 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -602,12 +602,12 @@ static int btree_readpage_end_io_hook(struct btrfs_io_bio *io_bio, | |||
602 | * that we don't try and read the other copies of this block, just | 602 | * that we don't try and read the other copies of this block, just |
603 | * return -EIO. | 603 | * return -EIO. |
604 | */ | 604 | */ |
605 | if (found_level == 0 && btrfs_check_leaf_full(root, eb)) { | 605 | if (found_level == 0 && btrfs_check_leaf_full(fs_info, eb)) { |
606 | set_bit(EXTENT_BUFFER_CORRUPT, &eb->bflags); | 606 | set_bit(EXTENT_BUFFER_CORRUPT, &eb->bflags); |
607 | ret = -EIO; | 607 | ret = -EIO; |
608 | } | 608 | } |
609 | 609 | ||
610 | if (found_level > 0 && btrfs_check_node(root, eb)) | 610 | if (found_level > 0 && btrfs_check_node(fs_info, eb)) |
611 | ret = -EIO; | 611 | ret = -EIO; |
612 | 612 | ||
613 | if (!ret) | 613 | if (!ret) |
@@ -3854,7 +3854,7 @@ void btrfs_mark_buffer_dirty(struct extent_buffer *buf) | |||
3854 | * So here we should only check item pointers, not item data. | 3854 | * So here we should only check item pointers, not item data. |
3855 | */ | 3855 | */ |
3856 | if (btrfs_header_level(buf) == 0 && | 3856 | if (btrfs_header_level(buf) == 0 && |
3857 | btrfs_check_leaf_relaxed(root, buf)) { | 3857 | btrfs_check_leaf_relaxed(fs_info, buf)) { |
3858 | btrfs_print_leaf(buf); | 3858 | btrfs_print_leaf(buf); |
3859 | ASSERT(0); | 3859 | ASSERT(0); |
3860 | } | 3860 | } |