diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 16:23:29 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:38 +0200 |
commit | 1c4360ee056b724d3b0e4cb2d0fe4ff6c242b7ca (patch) | |
tree | eb0a898a380a10233be5720b522cb59321ffc82c /fs/btrfs/disk-io.c | |
parent | 929be17a9b49b10743c3db304f939d27da1abd2f (diff) | |
download | linux-1c4360ee056b724d3b0e4cb2d0fe4ff6c242b7ca.tar.gz linux-1c4360ee056b724d3b0e4cb2d0fe4ff6c242b7ca.tar.bz2 linux-1c4360ee056b724d3b0e4cb2d0fe4ff6c242b7ca.zip |
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: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 0b2b75a7efbd..3c488fc493bd 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -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; } |