diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 16:58:13 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 20:02:31 +0300 |
commit | e064d5e9f0a00041f84d9eabd3d53546e4f8ab74 (patch) | |
tree | 42fe3f78ff1c39ba8a7c8f9459a7f4a9c6553e95 /fs/btrfs/ctree.c | |
parent | 5ab12d1ff83723f724d8631228f2b747aaec0a85 (diff) | |
download | linux-e064d5e9f0a00041f84d9eabd3d53546e4f8ab74.tar.xz |
btrfs: get fs_info from eb in btrfs_verify_level_key
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/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 3e26254fefe8..0998e7fba98b 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -2420,7 +2420,7 @@ read_block_for_search(struct btrfs_root *root, struct btrfs_path *p, * being cached, read from scrub, or have multiple * parents (shared tree blocks). */ - if (btrfs_verify_level_key(fs_info, tmp, + if (btrfs_verify_level_key(tmp, parent_level - 1, &first_key, gen)) { free_extent_buffer(tmp); return -EUCLEAN; |