Message ID | 20200519081424.103318-7-hare@suse.de (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Mike Snitzer |
Headers | show |
Series | dm-zoned: improve cache performance | expand |
On 2020/05/19 17:14, Hannes Reinecke wrote: > 'dev' is unused, and can be removed. > > Reported-by: kbuild test robot <lkp@intel.com> > Signed-off-by: Hannes Reinecke <hare@suse.de> > --- > drivers/md/dm-zoned-reclaim.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/md/dm-zoned-reclaim.c b/drivers/md/dm-zoned-reclaim.c > index 3ed88581dc48..571bc1d41bab 100644 > --- a/drivers/md/dm-zoned-reclaim.c > +++ b/drivers/md/dm-zoned-reclaim.c > @@ -366,7 +366,6 @@ static int dmz_do_reclaim(struct dmz_reclaim *zrc) > struct dmz_metadata *zmd = zrc->metadata; > struct dm_zone *dzone; > struct dm_zone *rzone; > - struct dmz_dev *dev; > unsigned long start; > int ret; > > @@ -376,7 +375,6 @@ static int dmz_do_reclaim(struct dmz_reclaim *zrc) > return -EBUSY; > > start = jiffies; > - dev = dmz_zone_to_dev(zmd, dzone); > if (dmz_is_cache(dzone) || dmz_is_rnd(dzone)) { > if (!dmz_weight(dzone)) { > /* Empty zone */ > Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
diff --git a/drivers/md/dm-zoned-reclaim.c b/drivers/md/dm-zoned-reclaim.c index 3ed88581dc48..571bc1d41bab 100644 --- a/drivers/md/dm-zoned-reclaim.c +++ b/drivers/md/dm-zoned-reclaim.c @@ -366,7 +366,6 @@ static int dmz_do_reclaim(struct dmz_reclaim *zrc) struct dmz_metadata *zmd = zrc->metadata; struct dm_zone *dzone; struct dm_zone *rzone; - struct dmz_dev *dev; unsigned long start; int ret; @@ -376,7 +375,6 @@ static int dmz_do_reclaim(struct dmz_reclaim *zrc) return -EBUSY; start = jiffies; - dev = dmz_zone_to_dev(zmd, dzone); if (dmz_is_cache(dzone) || dmz_is_rnd(dzone)) { if (!dmz_weight(dzone)) { /* Empty zone */
'dev' is unused, and can be removed. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Hannes Reinecke <hare@suse.de> --- drivers/md/dm-zoned-reclaim.c | 2 -- 1 file changed, 2 deletions(-)