提交 0ceaf282 编写于 作者: D David Sterba

btrfs: remove redundant parameter from reada_find_zone

We can read fs_info from dev.
Reviewed-by: NLiu Bo <bo.li.liu@oracle.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 d48d71aa
......@@ -235,10 +235,10 @@ int btree_readahead_hook(struct extent_buffer *eb, int err)
return ret;
}
static struct reada_zone *reada_find_zone(struct btrfs_fs_info *fs_info,
struct btrfs_device *dev, u64 logical,
static struct reada_zone *reada_find_zone(struct btrfs_device *dev, u64 logical,
struct btrfs_bio *bbio)
{
struct btrfs_fs_info *fs_info = dev->fs_info;
int ret;
struct reada_zone *zone;
struct btrfs_block_group_cache *cache = NULL;
......@@ -374,7 +374,7 @@ static struct reada_extent *reada_find_extent(struct btrfs_fs_info *fs_info,
if (!dev->bdev)
continue;
zone = reada_find_zone(fs_info, dev, logical, bbio);
zone = reada_find_zone(dev, logical, bbio);
if (!zone)
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册