Commit 1c4360ee authored by David Sterba's avatar David Sterba

btrfs: get fs_info from eb in btrfs_check_leaf_full

We can read fs_info from extent buffer and can drop it from the
parameters.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 929be17a
...@@ -652,7 +652,7 @@ static int btree_readpage_end_io_hook(struct btrfs_io_bio *io_bio, ...@@ -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 * that we don't try and read the other copies of this block, just
* return -EIO. * 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); set_bit(EXTENT_BUFFER_CORRUPT, &eb->bflags);
ret = -EIO; ret = -EIO;
} }
......
...@@ -963,8 +963,7 @@ static int check_leaf(struct extent_buffer *leaf, bool check_item_data) ...@@ -963,8 +963,7 @@ static int check_leaf(struct extent_buffer *leaf, bool check_item_data)
return 0; return 0;
} }
int btrfs_check_leaf_full(struct btrfs_fs_info *fs_info, int btrfs_check_leaf_full(struct extent_buffer *leaf)
struct extent_buffer *leaf)
{ {
return check_leaf(leaf, true); return check_leaf(leaf, true);
} }
......
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
* Will check not only the item pointers, but also every possible member * Will check not only the item pointers, but also every possible member
* in item data. * in item data.
*/ */
int btrfs_check_leaf_full(struct btrfs_fs_info *fs_info, int btrfs_check_leaf_full(struct extent_buffer *leaf);
struct extent_buffer *leaf);
/* /*
* Less strict leaf checker. * Less strict leaf checker.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment