diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 16:40:48 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:39 +0200 |
commit | ddaf1d5aef2c34f0cf5b0d71a48f9d88c5a0e2dc (patch) | |
tree | a4d9170bf4d5c47d6da1be05ab8b78b32a8e08ca /fs/btrfs/volumes.c | |
parent | 6ec0896c4c810da6abf2130f13cbbe38a8955697 (diff) | |
download | lwn-ddaf1d5aef2c34f0cf5b0d71a48f9d88c5a0e2dc.tar.gz lwn-ddaf1d5aef2c34f0cf5b0d71a48f9d88c5a0e2dc.zip |
btrfs: get fs_info from eb in btrfs_check_chunk_valid
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/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 4576f0e69d33..9a550b268017 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -6710,7 +6710,7 @@ static int read_one_chunk(struct btrfs_fs_info *fs_info, struct btrfs_key *key, * as chunk item in tree block is already verified by tree-checker. */ if (leaf->start == BTRFS_SUPER_INFO_OFFSET) { - ret = btrfs_check_chunk_valid(fs_info, leaf, chunk, logical); + ret = btrfs_check_chunk_valid(leaf, chunk, logical); if (ret) return ret; } |