Re: [PATCH 5/7] btrfs: remove redundant parameter from reada_find_zone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 15, 2017 at 05:02:36PM +0100, David Sterba wrote:
> We can read fs_info from dev.
> 
Reviewed-by: Liu Bo <bo.li.liu@xxxxxxxxxx>

Thanks,

-liubo
> Signed-off-by: David Sterba <dsterba@xxxxxxxx>
> ---
>  fs/btrfs/reada.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c
> index 5edf7328f67d..c1fc79cd4b2a 100644
> --- a/fs/btrfs/reada.c
> +++ b/fs/btrfs/reada.c
> @@ -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;
> @@ -372,7 +372,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;
>  
> -- 
> 2.12.0
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux