diff options
author | David Sterba <dsterba@suse.com> | 2017-03-02 19:43:30 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-04-18 14:07:25 +0200 |
commit | 0ceaf282137f261abf634f96b15c535baa6a9c93 (patch) | |
tree | 735c03337af28bafef939ff6b856dea0ec3e8f02 /fs/btrfs | |
parent | btrfs: remove redundant parameter from btree_readahead_hook (diff) | |
download | linux-0ceaf282137f261abf634f96b15c535baa6a9c93.tar.xz linux-0ceaf282137f261abf634f96b15c535baa6a9c93.zip |
btrfs: remove redundant parameter from reada_find_zone
We can read fs_info from dev.
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/reada.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c index 306e5108aac7..2deba18886db 100644 --- a/fs/btrfs/reada.c +++ b/fs/btrfs/reada.c @@ -235,10 +235,10 @@ start_machine: 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; |