summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2020-05-22 10:58:53 +0200
committerMike Snitzer <snitzer@redhat.com>2020-05-22 12:07:14 -0400
commitb4756d43a1dd2cfb778eb3cef3ba2efd2dcd5263 (patch)
tree48a4a5159c579f5ce14e1b47537fba26dc67e0fb /drivers/md
parenta16b7dee302d2040d9e1fedff2161d1aceda0e8c (diff)
dm zoned: remove leftover hunk for switching to sequential zones
Remove a leftover hunk to switch from random zones to sequential zones when selecting a reclaim zone; the logic has moved into the caller and this hunk is now pointless. Fixes: 34f5affd04c4 ("dm zoned: separate random and cache zones") 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')
-rw-r--r--drivers/md/dm-zoned-metadata.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/md/dm-zoned-metadata.c b/drivers/md/dm-zoned-metadata.c
index db0dc2b5d44d..4a2e351365c5 100644
--- a/drivers/md/dm-zoned-metadata.c
+++ b/drivers/md/dm-zoned-metadata.c
@@ -2112,14 +2112,6 @@ again:
if (!(flags & DMZ_ALLOC_RECLAIM))
return NULL;
/*
- * Use sequential write zones if we started off with random
- * zones and the list is empty
- */
- if (list == &zmd->unmap_rnd_list) {
- list = &zmd->unmap_seq_list;
- goto again;
- }
- /*
* Fallback to the reserved sequential zones
*/
zone = list_first_entry_or_null(&zmd->reserved_seq_zones_list,