diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 14:58:13 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:31 +0200 |
commit | e064d5e9f0a00041f84d9eabd3d53546e4f8ab74 (patch) | |
tree | 42fe3f78ff1c39ba8a7c8f9459a7f4a9c6553e95 /fs/btrfs/disk-io.c | |
parent | 5ab12d1ff83723f724d8631228f2b747aaec0a85 (diff) | |
download | linux-e064d5e9f0a00041f84d9eabd3d53546e4f8ab74.tar.gz linux-e064d5e9f0a00041f84d9eabd3d53546e4f8ab74.tar.bz2 linux-e064d5e9f0a00041f84d9eabd3d53546e4f8ab74.zip |
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/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 f7bfa73c2545..b4c070936289 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -394,10 +394,10 @@ static int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, return ret; } -int btrfs_verify_level_key(struct btrfs_fs_info *fs_info, - struct extent_buffer *eb, int level, +int btrfs_verify_level_key(struct extent_buffer *eb, int level, struct btrfs_key *first_key, u64 parent_transid) { + struct btrfs_fs_info *fs_info = eb->fs_info; int found_level; struct btrfs_key found_key; int ret; @@ -471,7 +471,7 @@ static int btree_read_extent_buffer_pages(struct extent_buffer *eb, if (verify_parent_transid(io_tree, eb, parent_transid, 0)) ret = -EIO; - else if (btrfs_verify_level_key(fs_info, eb, level, + else if (btrfs_verify_level_key(eb, level, first_key, parent_transid)) ret = -EUCLEAN; else |