diff options
author | Hannes Reinecke <hare@suse.de> | 2020-05-19 10:14:21 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-05-20 17:09:50 -0400 |
commit | 90a9b8693f1b84a695864f2b416cba9bde107268 (patch) | |
tree | 3b024946f0aa53cfc4e1132ef2c9cd5cb9f58f31 /drivers/md/dm-zoned.h | |
parent | 34f5affd04c4a16d9df19c369bcec6e873e57ffe (diff) | |
download | linux-stable-90a9b8693f1b84a695864f2b416cba9bde107268.tar.gz linux-stable-90a9b8693f1b84a695864f2b416cba9bde107268.tar.bz2 linux-stable-90a9b8693f1b84a695864f2b416cba9bde107268.zip |
dm zoned: reclaim random zones when idle
When the system is idle we should be starting reclaiming
random zones, too.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-zoned.h')
-rw-r--r-- | drivers/md/dm-zoned.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-zoned.h b/drivers/md/dm-zoned.h index 29e01a853f84..288054dd7cf4 100644 --- a/drivers/md/dm-zoned.h +++ b/drivers/md/dm-zoned.h @@ -240,7 +240,7 @@ static inline bool dmz_is_active(struct dm_zone *zone) int dmz_lock_zone_reclaim(struct dm_zone *zone); void dmz_unlock_zone_reclaim(struct dm_zone *zone); -struct dm_zone *dmz_get_zone_for_reclaim(struct dmz_metadata *zmd); +struct dm_zone *dmz_get_zone_for_reclaim(struct dmz_metadata *zmd, bool idle); struct dm_zone *dmz_get_chunk_mapping(struct dmz_metadata *zmd, unsigned int chunk, int op); |