Message ID | ab9356d6b2db1095d1f09f9039e46df0099240d9.1489593696.git.dsterba@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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@oracle.com> Thanks, -liubo > Signed-off-by: David Sterba <dsterba@suse.com> > --- > 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@vger.kernel.org > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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;
We can read fs_info from dev. Signed-off-by: David Sterba <dsterba@suse.com> --- fs/btrfs/reada.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)